im havin problems mapping textures. i dont c anything happening. when i set the border to 1 though, i get a white box.
herez my code
glGenTextures 1, texName1(0)
glBindTexture glTexture2D, texName1(0)
'gluBuild2DMipmaps glTexture2D, 3, 256, 256, tiRGBA, pxlByte, intTexture(0)
glTexParameteri glTexture2D, tpnTextureWrapS, GL_REPEAT
glTexParameteri glTexture2D, tpnTextureWrapT, GL_REPEAT
glTexParameteri glTexture2D, tpnTextureMagFilter, GL_LINEAR
glTexParameteri glTexture2D, tpnTextureMinFilter, GL_LINEAR
glTexImage2D glTexture2D, 0, GL_RGBA8, 256, 256, 0, tiRGBA, pxlByte, intTexture(0)
'display routine
glEnable glcTexture2D
glTexEnvf tetTextureEnv, tenTextureEnvMode, tepDecal
glBindTexture glTexture2D, texName1(0)
MsgBox texName1(0)
glTranslated intWidth - 100, intHeight - 100, 0
glRotated intRotatey, 0, 0, 1
'glMaterialfv faceFrontAndBack, mprAmbientAndDiffuse, ambient_color(0)
glColorMaterial faceFront, cmmAmbientAndDiffuse
glEnable glcColorMaterial
glBegin bmQuads
glTexCoord2f 0, 0
glVertex2f -50, -50
glTexCoord2f 0, 1
glVertex2f -50, 50
glTexCoord2f 1, 1
glVertex2f 50, 50
glTexCoord2f 1, 0
glVertex2f 50, -50
glEnd
glDisable glcTexture2D
glDisable glcColorMaterial