From 9b55279fdefb2cd92cf9fc0c49c3f66f1965749c Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 26 Oct 2021 14:00:04 +0200 Subject: [PATCH] glgsg: Minor code cleanup in FBO code --- panda/src/glstuff/glGraphicsBuffer_src.I | 16 ++++++++++------ panda/src/glstuff/glGraphicsBuffer_src.h | 14 ++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/panda/src/glstuff/glGraphicsBuffer_src.I b/panda/src/glstuff/glGraphicsBuffer_src.I index 021116b7ff..4a3250eee8 100644 --- a/panda/src/glstuff/glGraphicsBuffer_src.I +++ b/panda/src/glstuff/glGraphicsBuffer_src.I @@ -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; } diff --git a/panda/src/glstuff/glGraphicsBuffer_src.h b/panda/src/glstuff/glGraphicsBuffer_src.h index c383a0a5d4..68c2dab74f 100644 --- a/panda/src/glstuff/glGraphicsBuffer_src.h +++ b/panda/src/glstuff/glGraphicsBuffer_src.h @@ -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: