I made a mistake. Sorry.
I was using fopen(file, "r");
I should have been using fopen(file, "rb"); // Read binary data.
My program works correctly now. Thanks for the input.
I have written a 3D Engine (not complete yet). It's called GMath3D. I am using the fread() function to load data from a polygon data file. This function seems to work flawlessly when used in my 3D editor in Windows, but when I try and load the polygon data into my gp2x program, my system...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.