Alright I have figured out a lot of mistakes but now I have a problem getting the
glTexImage2D function to work… I load a bitmap using LoadImage and then get the data using
GetObject(pbitmap, sizeof(BITMAP), (LPSTR)&bmp);
I don’t know how to set the internal format, type, and format of the glTexImage2D call to get it to work. I am getting no errors but it just puts a black screen up. If I comment out the call I get my quadric sphere, untextured of course.
I am calling it as follows:
glTexImage2D(
GL_TEXTURE_2D,
0,
GL_RGBA8,//internalformat
bmp.bmWidth ,//width
bmp.bmHeight ,//height
0,//border
GL_RGBA,//format
GL_UNSIGNED_BYTE,//type
bmp.bmBits );
[This message has been edited by delic (edited 10-06-2002).]