need help with glInterleavedArrays

BlitzMax Forums/OpenGL Module/need help with glInterleavedArrays

Jesse(Posted 2007) [#1]
I am trying to figure out how to use glInterLeaveArrays with out any luck. I am using it to draw a texture box. some how it is not working correctly. I can do it fine with independent GL_QUADS for each side but I can't get it to work with glInterleaveArrays. this is the code so far:




Jesse(Posted 2007) [#2]
well, I finally figure it out. I guess the way types in Blitzmax does not work the same way as in c and must be saved in a straight single dimension array of type floats.
the above sample is a stripped down sample of what i was trying to figure out. I was trying to convert a c tutoral file from c to basic. i finally sort of did it except for the text part which I am still trying to figure out. here is what I got so far it uses alpha channel to see into the cube but not through. Use your own 255x255 png texture.


thanks everybod for your help :).