Results 1 to 4 of 4

Thread: Problems loading a PNG texture

  1. #1

    Problems loading a PNG texture

    Hey,

    I'm having difficulties loading a PNG texture from file. All I see is a white rectangle when I render it. The log says:

    Code:
    [00001930ms] Unable to load texture: "G:\proj\defender\bin\data\tux_stand.png"
    I've used tux_stand to make sure the image wasn't the problem. It seems that ManagerTextures.count.formats is zero. I can't find any code that loads these formats. I guess something went wrong when I tried to remove redundant files from my project directory. Or maybe i forgot to copy some files to it.

    Can somebody help me out?

    Thanks
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2
    That was pretty simple. Seems like every image format has it's own unit that must be included aswell.

    Code:
    uses
      ...
      zgl_textures,
      zgl_textures_png,
      zgl_textures_jpg,   
      ...;
    I'd like to see some kind of guide that explains these things. Would help alot
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #3
    I'd like to see some kind of guide that explains these things. Would help alot
    demos\Your IDE here\04 - Text\Project File, line 19

  4. #4
    Hehe, I'm not much of a reader when it comes to demo sources. Usually I just run them and globally analyze them. I actually meant that it would be nice to have a webpage that explains in detail how zengl is set up. I believe it's not that hard to summarize how it works.

    Fortunately, I see that there is allready some info on the wiki.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •