safe practice?

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

safe practice?

Post by JPulham »

I have a generic structure in C++ that desicribes either a VBO or vertex array in OpenGL.
Can I use the void* pointers to vertex/index array (client side) as GLuint's specifying VBO id's when using VBO's? Do I just bitwase & 0xffffffff to use only 32 bits even on 64 bit systems. More importanly... what I'm really asking is... is it 'safe' to do so?

I ask because I'm using #pragma push(pack, 1) and it fits nicly with the 32 bit boundry. :D
pushpork
Post Reply