Original Post
what im trying to do is render a bmp file onto the framebuffer with glDrawPixels, (dont want to use textures cuz of size limitations, actualy i heard there is a work around, and would appreciate if anyone gave me a hint, also would that be faster then building display lists for glDrawPixels?) anyhoo the problem is that i want to mix this method with normal 3d rendering, but im not so familiar with opengl workings. Specificaly when i write to the buffer by:
glRasterPos2i(x,y);
glDrawPixels(m_Singleton->m_images[index].width, m_Singleton->m_images[index].height, m_Singleton->m_images[index].bpp, GL_UNSIGNED_BYTE, m_Singleton->m_images[index].data);
i get my 3d scene with no effect shown by the above (ps when i debug this, all the data seems to be there just fine). The obvious thing is that my lack of knowledge of buffers is screwing things up.
basicaly this is what i have:
// in init function
glViewport(0,0,width,height);
glViewport takes (x, y, width, height)
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height, 1.0f, view);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
// the main drawing function
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glPushAttrib(GL_CURRENT_BIT);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
Draw3DSGrid();
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopAttrib();
SwapBuffers(sEngine.hDC);
where exactly am i supposed to put the call, and how do i combine the two techniques. Thanks in advance for ur help