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 think so. I have taken the coords from my PureBasic code, works fine there. But I use the command glTexImage2D(GL_TEXTURE_2D, 0, 3, Width, Height, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, ImageData+PeekL(ImageData+10)). This is not in my BM code, and I havent found it used in any of the examples. I thought this line was needed, but I'm not sure.

BTW thanks for the help so fare!

regards
Sveinung