I can't seem to figure out why my texture have no read in any of the NeHe Texture tutorials I see the Green and Blue, but there isn't any red in the texture as if it wasn't being put the thru pixmap...
Nehe Tut7 Texture Problems
BlitzMax Forums/BlitzMax OpenGL Programming/Nehe Tut7 Texture Problems I get a blue crate on the tut
I don't know if this is what you want to hear, but BlitzMax has some really neat builtin texturing helper functions, so that you can simply do this:
BlitzGL contains a few other nice tools, such as bglCreateContext - Just check the help on BlitzGL. Hope this helps.
' Variables Local thePixmap:TPixmap Local theTexture:Int ' First set up openGL bglCreateContext(800, 600) glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE) glEnable(GL_TEXTURE_2D) ' Load the texture thePixmap = LoadPixmap("incbin::picture.jpg") theTexture = bglTexFromPixmap(thePixmap)
BlitzGL contains a few other nice tools, such as bglCreateContext - Just check the help on BlitzGL. Hope this helps.
Dude I know all this..
Im trying to figure out why the textures aren't loading right in the Nehe Tutorail 7
how else can I use OpenGL in blitz without using the context command
Im trying to figure out why the textures aren't loading right in the Nehe Tutorail 7
how else can I use OpenGL in blitz without using the context command
@ Extron,
IF the Image (Pixmap) has an Alpha part (i.e is 32 bit) would I need
...
Checkimage [y,x,3] = PtrImg[pp+3]
pp:+4
Yours H&K
IF the Image (Pixmap) has an Alpha part (i.e is 32 bit) would I need
...
Checkimage [y,x,3] = PtrImg[pp+3]
pp:+4
Yours H&K