3D OpenGL Engine

BlitzPlus Forums/BlitzPlus Programming/3D OpenGL Engine

If the demo works, and the code breaks, I am guessing your userlibs have a % where they should have a *.

Ah-ha...Opengl32.decls

glDrawElements( mode%, count%, ntype%, indices% ):"glDrawElements"

should be
glDrawElements( mode%, count%, ntype%, indices* ):"glDrawElements"


glColorPointer( lsize%, ntype%, stride%, Pointer% ):"glColorPointer"

should be
glColorPointer( lsize%, ntype%, stride%, Pointer* ):"glColorPointer"


glVertexPointer( lsize%, ntype%, stride%, Pointer% ):"glVertexPointer"

should be
glVertexPointer( lsize%, ntype%, stride%, Pointer* ):"glVertexPointer"


Sorry about that. I guess I updated the copy of the userlibs in the BlitzPlus directory, and sent you the old ones.



I uploaded a new version, with the userlibs copied straight out of my userlibs folder, an executable, and a Blitz3D program for speed comparison (test.bb).