m_ecran = GetMainDevice();
GLint attributes[] = { AGL_RGBA,
AGL_DOUBLEBUFFER,
AGL_ACCELERATED,
AGL_FULLSCREEN,
AGL_NONE };
AGLPixelFormat pix_form = aglChoosePixelFormat (&m_ecran, 1, attributes);
m_agl_contexte_rendu = aglCreateContext(pix_form, NULL);
aglSetCurrentContext(m_agl_contexte_rendu);
aglDestroyPixelFormat(pix_form);
aglSetFullScreen(m_agl_contexte_rendu, 1024, 768, 60, 0);
glDisable(GL_DITHER);
glDisable(GL_ALPHA_TEST);
glDisable(GL_BLEND);
glDisable(GL_STENCIL_TEST);
glDisable(GL_FOG);
glDisable(GL_TEXTURE_2D);
glDisable(GL_DEPTH_TEST);
glPixelZoom(1.0,1.0);
glClearColor (0.2f, 0.2f, 0.3f, 1.0f);
gluOrtho2D(0,1,0,1);
HideCursor();