Original Post
I have three questions about making a cross platform, opengl app. 1) I've been trying to port my opengl app from pc to mac for a while now. Except all my file formats (tga, md2) don't load under mac, but when I do get them to load or find code from the internet that can get them to load on mac, I can't get my file's to load on pc again. I know about endians but I've written endian independent code (I swear!). Is there anything else I could be missing? Could I have done it wrong? 2) Also, on nehe's lesson 10, the tutorial loads geometry from a "world.txt" file. I tried porting the pc code of this tutorial to mac and I did get it to compile, but the world.txt and code from windows ends the program with a run-time error. It's the exact same file in the same format! The code is all the same! But the program terminates. Only the mac version of nehe's lesson 10 will load the world.txt. Why is this? Does this have to do with endian? 3) Also, I have read this article here, http://www.gamedev.net/reference/articles/article2091.asp The article says: "The short answer is, endians come into play whenever your code assumes that a certain endian is being used. The most frequent time this happens is when you're reading from a file." Am I to assume that whenever I'm reading or writing a file on a system I will have to worry about endians? I know these questions might seem silly, but I have created multi-platform 2d games in the past with SDL and now I want to do a 3d game with opengl and I'm running into problems with just loading the files! NOTE: my pc is an AMD and my mac is a G4 if it makes a difference.