Hello Johannes,
Johannes Brunen wrote:
> "Marcus Lindblom" <[email protected]> schrieb im
> Newsbeitrag news:[email protected]...
>> True, but as Johannes said, they don't support multi-sampling on all
>> cards, so they're not really viable in all cases. :-|
>>
> Yes, unfortunately I have to support quite old graphic cards. However, I
> have nevertheless planned to give the FBOs a try. This is the future anyway.
> Possibly, I will go for a fall back solution in case of older hardware. I
> have to take look for the time and effort...
>
> How can I check for FBO support and if a FBO supports stencil and
> multisample operations?
FBO support:
// at an early point (before Window::frameInit()):
UInt32 fboExt = Window::registerExtension("GL_ARB_framebuffer_object");
// after Window::frameInit():
if(pWin->hasExtension(fboExt))
{
// has FBO
}
As far as I can tell, if "GL_ARB_framebuffer_object" is supported you
should also have multisample support as the spec for that extension
includes it. If you only have "GL_EXT_framebuffer_object" extension
multisampling may not be available.
Cheers,
Carsten
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users