arbis
09-18-2003, 02:38 AM
I want to create fpbuffer that has 10 auxiliary buffers but it doesn't work.
I set the attribute list like below
int attribList[] =
{
WGL_SUPPORT_OPENGL_ARB, true,
WGL_DRAW_TO_PBUFFER_ARB, true,
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV, true,
WGL_AUX_BUFFERS_ARB, 10,
WGL_FLOAT_COMPONENTS_NV, true,
WGL_RED_BITS_ARB, 32,
WGL_GREEN_BITS_ARB, 32,
WGL_BLUE_BITS_ARB, 32,
WGL_ALPHA_BITS_ARB, 32,
0,
};
wglChoosePixelFormatARB(hWindowDC, attribList, NULL, 1, &format, &nformats);
if (nformats == 0)
{
printf("ERROR~\n");
return false;
}
////////////////////////
But after wglChoosePixelFormatARB(), nformat become 0. And false is returned.
I use following extensions.
"GL_ARB_texture_compression " \
"GL_ARB_multitexture " \
"GL_NV_vertex_program " \
"GL_NV_texture_rectangle " \
"GL_NV_fragment_program " \
"WGL_ARB_extensions_string "\
"WGL_ARB_pbuffer "\
"WGL_ARB_pixel_format "\
"WGL_ARB_render_texture "\
"WGL_NV_render_texture_rectangle "\
"GL_NV_float_buffer "
[This message has been edited by arbis (edited 09-18-2003).]
[This message has been edited by arbis (edited 09-18-2003).]
I set the attribute list like below
int attribList[] =
{
WGL_SUPPORT_OPENGL_ARB, true,
WGL_DRAW_TO_PBUFFER_ARB, true,
WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV, true,
WGL_AUX_BUFFERS_ARB, 10,
WGL_FLOAT_COMPONENTS_NV, true,
WGL_RED_BITS_ARB, 32,
WGL_GREEN_BITS_ARB, 32,
WGL_BLUE_BITS_ARB, 32,
WGL_ALPHA_BITS_ARB, 32,
0,
};
wglChoosePixelFormatARB(hWindowDC, attribList, NULL, 1, &format, &nformats);
if (nformats == 0)
{
printf("ERROR~\n");
return false;
}
////////////////////////
But after wglChoosePixelFormatARB(), nformat become 0. And false is returned.
I use following extensions.
"GL_ARB_texture_compression " \
"GL_ARB_multitexture " \
"GL_NV_vertex_program " \
"GL_NV_texture_rectangle " \
"GL_NV_fragment_program " \
"WGL_ARB_extensions_string "\
"WGL_ARB_pbuffer "\
"WGL_ARB_pixel_format "\
"WGL_ARB_render_texture "\
"WGL_NV_render_texture_rectangle "\
"GL_NV_float_buffer "
[This message has been edited by arbis (edited 09-18-2003).]
[This message has been edited by arbis (edited 09-18-2003).]