Vertex program / shaders

BlitzMax Forums/BlitzMax OpenGL Programming/Vertex program / shaders

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@Tom.
Could you kind enough to show me a little bit of shader initialisation code please. The only bits I'm interested in are:

glShaderSourceARB( vertexshader,1,Varptr vertexShaderStrings,Null)
glCompileShaderARB(vertexShader)

and how you have setup the 'vertexshader' variable and 'vertexshaderstrings' variable. I'm having a spot of trouble getting the pointers right and although my code will run it generates an internal GL_ERROR and the shader won't do its thing.

Many thanks