mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
glgsg: Minor code cleanup in FBO code
This commit is contained in:
parent
594a26662e
commit
9b55279fde
@ -11,14 +11,18 @@
|
||||
* @date 2006-01-15
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INLINE int CLP(GraphicsBuffer)::
|
||||
get_multisample_count()
|
||||
{
|
||||
return _requested_multisamples;
|
||||
get_multisample_count() {
|
||||
return _requested_multisamples;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INLINE int CLP(GraphicsBuffer)::
|
||||
get_coverage_sample_count()
|
||||
{
|
||||
return _requested_coverage_samples;
|
||||
get_coverage_sample_count() {
|
||||
return _requested_coverage_samples;
|
||||
}
|
||||
|
@ -23,11 +23,14 @@
|
||||
* ARB_draw_buffers extensions. This design has significant advantages over
|
||||
* the older wglGraphicsBuffer and glxGraphicsBuffer:
|
||||
*
|
||||
* * Can export depth and stencil. * Supports auxiliary bitplanes. *
|
||||
* Supports non-power-of-two padding. * Supports tracking of host window
|
||||
* size. * Supports cumulative render-to-texture. * Faster than pbuffers. *
|
||||
* Can render onto a texture without clearing it first. * Supports
|
||||
* multisample antialiased rendering.
|
||||
* - Can export depth and stencil.
|
||||
* - Supports auxiliary bitplanes.
|
||||
* - Supports non-power-of-two padding.
|
||||
* - Supports tracking of host window size.
|
||||
* - Supports cumulative render-to-texture.
|
||||
* - Faster than pbuffers.
|
||||
* - Can render onto a texture without clearing it first.
|
||||
* - Supports multisample antialiased rendering.
|
||||
*
|
||||
* Some of these deserve a little explanation. Auxiliary bitplanes are
|
||||
* additional bitplanes above and beyond the normal depth,stencil,color. One
|
||||
@ -45,7 +48,6 @@
|
||||
* EXT_framebuffer_blit to allow for multisample antialiasing these offscreen
|
||||
* render targets. If these extensions are unavailable the buffer will render
|
||||
* as if multisamples is 0.
|
||||
*
|
||||
*/
|
||||
class EXPCL_GL CLP(GraphicsBuffer) : public GraphicsBuffer {
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user