How to load texture in OpenGL

BlitzMax Forums/BlitzMax Programming/How to load texture in OpenGL

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.

I have done that, but still no texturemap.

My code look something like this:
tex01 = loadpixmap("rock.png")
glbindtexture(GL_TEXTURE_2D, bgltexfrompixmap(tex01))
glenable GL_TEXTURE_2D

Then I bind this to the quad....
What am I doing wrong?

Regards
Sveinung