Search found 3 matches

by Apickx
Sun Mar 10, 2019 9:40 pm
Forum: Beginners Help
Topic: vector2d's = operator is overwriting my stack variable
Replies: 1
Views: 796

vector2d's = operator is overwriting my stack variable

Edit: Literal seconds after posting I figured it out; my array was too small. Thanks everyone :oops: I've been stuck on this for a while, I suspect my problem is not with irrlicht, but with something more fundamental to C/C++ I'm using https://github.com/syoyo/tinyobjloader-c/ to basically re-implem...
by Apickx
Fri Oct 26, 2018 7:11 pm
Forum: Beginners Help
Topic: [Solved] Problem loading .png "not really a png"
Replies: 4
Views: 1442

Re: Problem loading .png "not really a png"

Figured it out, CImageLoaderPng::isALoadableFileFormat() reads the first 8 bytes of the file passed, but does not reset the cursor to the beginning of the file. So my check for isALoadableFileFormat() reads the first 8 bytes, and then CImageLoaderPng::loadImage() takes the next 8 bytes, assuming the...
by Apickx
Tue Oct 23, 2018 2:43 pm
Forum: Beginners Help
Topic: [Solved] Problem loading .png "not really a png"
Replies: 4
Views: 1442

[Solved] Problem loading .png "not really a png"

Hi, I'm having some trouble loading a png. When I call loadImage(), irrlicht prints "LOAD PNG: not really a png". I dug into the source a bit, and found that a call to png_sig_cmp() failed. I checked my image with od -tx1 client\data\ui\background2.png , which outputs   0000000 89 50 4e 47...