sdl stencil buffer

Posted by noddy on Game Development See other posts from Game Development or by noddy
Published on 2011-11-25T09:27:02Z Indexed on 2011/11/25 10:09 UTC
Read the original article Hit count: 239

Filed under:
|
|

I am trying to use the stencil buffer for rendering reflection and am working with SDL and OpenGL. When I give the command SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,8),I get a return value of 0 indicating success,but when I try to get the size allocated using SDL_GL_GetAtribute( SDL_GL_STENCIL_SIZE,&i),I get a value of 0 for my stencil buffer due to which I am not getting the desired rendering. Can someone help me to correct my mistake? Is there some other initialization also required? Thanks

© Game Development or respective owner

Related posts about opengl

Related posts about sdl