Hey All,
Another noob's simple question here.
I want to use these
Required Extensions:
WGL_ARB_extensions_string
WGL_ARB_render_texture
WGL_ARG_pbuffer
WGL_ARB_pixel_format
How to make my code compile-able?
Hey All,
Another noob's simple question here.
I want to use these
Required Extensions:
WGL_ARB_extensions_string
WGL_ARB_render_texture
WGL_ARG_pbuffer
WGL_ARB_pixel_format
How to make my code compile-able?
By reading this :
http://www.opengl.org/wiki/Getting_started#OpenGL_2.0.2B_and_extensions
Use Glee or GLEW to make it easier.
P.S: WGL_ARB_pbuffer is obsolete and a pain to use, use FBO instead if you can :
http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt
I love you.
okie I am stuck at here.
The problem is if I pass WGL_BIND_TO_TEXTURE_RGBA_ARB or WGL_BIND_TO_TEXTURE_RGB_ARB. I get back count == 0 which means I don’t get any piexel format :(.
int attr[] =
{
WGL_SUPPORT_OPENGL_ARB, TRUE,
WGL_DRAW_TO_PBUFFER_ARB, TRUE,
WGL_BIND_TO_TEXTURE_RGBA_ARB, TRUE,
WGL_RED_BITS_ARB, 8,
WGL_GREEN_BITS_ARB, 8,
WGL_BLUE_BITS_ARB, 8,
WGL_ALPHA_BITS_ARB, 8,
WGL_DEPTH_BITS_ARB, 24,
WGL_DOUBLE_BUFFER_ARB, FALSE,
0,0
};
float fAttributes[] = {0,0};
wglChoosePixelFormatARB(DeviceContext,attr, fAttributes, 1,&PixelFormat,&count);
okie I am stuck at here.
The problem is if I pass WGL_BIND_TO_TEXTURE_RGBA_ARB or WGL_BIND_TO_TEXTURE_RGB_ARB. I get back count == 0 which means I don’t get any piexel format :(.
int attr[] =
{
WGL_SUPPORT_OPENGL_ARB, TRUE,
WGL_DRAW_TO_PBUFFER_ARB, TRUE,
WGL_BIND_TO_TEXTURE_RGBA_ARB, TRUE,
WGL_RED_BITS_ARB, 8,
WGL_GREEN_BITS_ARB, 8,
WGL_BLUE_BITS_ARB, 8,
WGL_ALPHA_BITS_ARB, 8,
WGL_DEPTH_BITS_ARB, 24,
WGL_DOUBLE_BUFFER_ARB, FALSE,
0,0
};
float fAttributes[] = {0,0};
wglChoosePixelFormatARB(DeviceContext,attr, fAttributes, 1,&PixelFormat,&count);
Please Help me out :’(
http://dedebuffer.chez.com/
Try the truemotionblur_RTT.exe : if it works, you can check its code.
Otherwise, it propably means your video card or display driver does not support pbuffers. Which card and drivers do you have ?
But why exactly do you WANT to use pbuffers? Use the framebuffer object extension (FBO), it is the standard today and it is MUCH easier.
Jan.