sizeof(int) != 32?

Started by cfmdobbie, August 18, 2003, 21:51:12

Previous topic - Next topic

cfmdobbie

Theoretically, what happens when you want to port LWJGL to a 64-bit platform, or indeed any platform where sizeof(int) != 32?  In fact, what happens to OpenGL on such platforms?

Currently, getting data into and out of buffers is dead easy, as Java's 32-bit ints and floats convert nicely to the current build targets' hardware/compiler 32-bit representation.  But what about Solaris?  Or x86-64/IA-64?

I guess such an implementation would have to rewrite all data on the fly, and would lose the advantages of direct byte buffers?

(I'm assuming here that the OpenGL definitions of data type sizes always reflect their hardware/compiler sizes?)
ellomynameis Charlie Dobbie.

princec

The short answer is, we don't care! The day that we're all running on 64 bit O/Ses maybe we'll be thinking about it :)

Cas :)