hello !
i have 2 pbs :
-the first one is that when i run my prgm with VC++, textures don’t appear but the bitmap do, and when i run the compiled prgm with explorer textures appear but the bitmap doesn’t. Somebody has a solution ?
-the second : the piece of code under is made for putting a bitmap (called rasters) on a 3d scene, maybe it is not optimized. If somebody could help me …
//***************************************
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
// afficher le bitmap
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho (0.0,Winw,0.0,Winh,-1.0,1.0);
glRasterPos2i (Winw/2, Winh*50/100);
glDrawPixels(12,12,GL_RGBA,GL_BYTE,rasters);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
// passer à la 3d …
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(3,2,3,0,0,0,0,1,0);
glRotated(a,0,1,0);
glBindTexture(GL_TEXTURE_2D,Image[0]);
glBegin(GL_QUADS);