Panda3D
|
A tiny specialization on GLGraphicsStateGuardian to add some glx-specific information. More...
#include "glxGraphicsStateGuardian.h"
Public Member Functions | |
glxGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe, glxGraphicsStateGuardian *share_with) | |
void | choose_pixel_format (const FrameBufferProperties &properties, X11_Display *_display, int _screen, bool need_pbuffer, bool need_pixmap) |
Selects a visual or fbconfig for all the windows and buffers that use this gsg. | |
virtual TypeHandle | force_init_type () |
const FrameBufferProperties & | get_fb_properties () const |
Gets the FrameBufferProperties for all windows and buffers that use this GSG. | |
void | get_properties (FrameBufferProperties &properties, XVisualInfo *visual) |
Gets the FrameBufferProperties to match the indicated visual. | |
void | get_properties_advanced (FrameBufferProperties &properties, bool &context_has_pbuffer, bool &pixmap_supported, bool &slow, GLXFBConfig config) |
Gets the FrameBufferProperties to match the indicated GLXFBConfig. | |
virtual TypeHandle | get_type () const |
bool | glx_is_at_least_version (int major_version, int minor_version) const |
Returns true if the runtime GLX version number is at least the indicated value, false otherwise. | |
![]() | |
PosixGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe) | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
GLXContext | _context |
bool | _context_has_pbuffer |
bool | _context_has_pixmap |
X11_Display * | _display |
GLXFBConfig | _fbconfig |
FrameBufferProperties | _fbprops |
PFNGLXCHOOSEFBCONFIGPROC | _glXChooseFBConfig |
PFNGLXCREATECONTEXTATTRIBSARBPROC | _glXCreateContextAttribs |
PFNGLXCREATEGLXPBUFFERSGIXPROC | _glXCreateGLXPbufferSGIX |
PFNGLXCREATENEWCONTEXTPROC | _glXCreateNewContext |
PFNGLXCREATEPBUFFERPROC | _glXCreatePbuffer |
PFNGLXCREATEPIXMAPPROC | _glXCreatePixmap |
PFNGLXDESTROYPBUFFERPROC | _glXDestroyPbuffer |
PFNGLXGETFBCONFIGATTRIBPROC | _glXGetFBConfigAttrib |
PFNGLXGETVISUALFROMFBCONFIGPROC | _glXGetVisualFromFBConfig |
PFNGLXSWAPINTERVALSGIPROC | _glXSwapIntervalSGI |
int | _screen |
GLXContext | _share_context |
bool | _slow |
bool | _supports_fbconfig |
bool | _supports_pbuffer |
bool | _supports_swap_control |
bool | _uses_sgix_pbuffer |
XVisualInfo * | _visual |
XVisualInfo * | _visuals |
A tiny specialization on GLGraphicsStateGuardian to add some glx-specific information.
Definition at line 74 of file glxGraphicsStateGuardian.h.
glxGraphicsStateGuardian::glxGraphicsStateGuardian | ( | GraphicsEngine * | engine, |
GraphicsPipe * | pipe, | ||
glxGraphicsStateGuardian * | share_with ) |
Definition at line 29 of file glxGraphicsStateGuardian.cxx.
|
virtual |
Definition at line 65 of file glxGraphicsStateGuardian.cxx.
void glxGraphicsStateGuardian::choose_pixel_format | ( | const FrameBufferProperties & | properties, |
X11_Display * | display, | ||
int | screen, | ||
bool | need_pbuffer, | ||
bool | need_pixmap ) |
Selects a visual or fbconfig for all the windows and buffers that use this gsg.
Also creates the GL context and obtains the visual.
Definition at line 225 of file glxGraphicsStateGuardian.cxx.
References FrameBufferProperties::clear(), get_properties_advanced(), and FrameBufferProperties::get_quality().
|
inlinevirtual |
Reimplemented from PosixGraphicsStateGuardian.
Definition at line 161 of file glxGraphicsStateGuardian.h.
|
inlinestatic |
Definition at line 150 of file glxGraphicsStateGuardian.h.
|
inline |
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
Definition at line 18 of file glxGraphicsStateGuardian.I.
void glxGraphicsStateGuardian::get_properties | ( | FrameBufferProperties & | properties, |
XVisualInfo * | visual ) |
Gets the FrameBufferProperties to match the indicated visual.
Definition at line 83 of file glxGraphicsStateGuardian.cxx.
References FrameBufferProperties::clear(), and FrameBufferProperties::set_rgba_bits().
void glxGraphicsStateGuardian::get_properties_advanced | ( | FrameBufferProperties & | properties, |
bool & | context_has_pbuffer, | ||
bool & | pixmap_supported, | ||
bool & | slow, | ||
GLXFBConfig | config ) |
Gets the FrameBufferProperties to match the indicated GLXFBConfig.
Definition at line 140 of file glxGraphicsStateGuardian.cxx.
References FrameBufferProperties::clear(), and FrameBufferProperties::set_rgba_bits().
Referenced by choose_pixel_format().
|
inlinevirtual |
Reimplemented from PosixGraphicsStateGuardian.
Definition at line 158 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::glx_is_at_least_version | ( | int | major_version, |
int | minor_version ) const |
Returns true if the runtime GLX version number is at least the indicated value, false otherwise.
Definition at line 436 of file glxGraphicsStateGuardian.cxx.
|
inlinestatic |
Definition at line 153 of file glxGraphicsStateGuardian.h.
GLXContext glxGraphicsStateGuardian::_context |
Definition at line 94 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_context_has_pbuffer |
Definition at line 102 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_context_has_pixmap |
Definition at line 103 of file glxGraphicsStateGuardian.h.
X11_Display* glxGraphicsStateGuardian::_display |
Definition at line 95 of file glxGraphicsStateGuardian.h.
GLXFBConfig glxGraphicsStateGuardian::_fbconfig |
Definition at line 100 of file glxGraphicsStateGuardian.h.
FrameBufferProperties glxGraphicsStateGuardian::_fbprops |
Definition at line 101 of file glxGraphicsStateGuardian.h.
PFNGLXCHOOSEFBCONFIGPROC glxGraphicsStateGuardian::_glXChooseFBConfig |
Definition at line 111 of file glxGraphicsStateGuardian.h.
PFNGLXCREATECONTEXTATTRIBSARBPROC glxGraphicsStateGuardian::_glXCreateContextAttribs |
Definition at line 116 of file glxGraphicsStateGuardian.h.
PFNGLXCREATEGLXPBUFFERSGIXPROC glxGraphicsStateGuardian::_glXCreateGLXPbufferSGIX |
Definition at line 121 of file glxGraphicsStateGuardian.h.
PFNGLXCREATENEWCONTEXTPROC glxGraphicsStateGuardian::_glXCreateNewContext |
Definition at line 112 of file glxGraphicsStateGuardian.h.
PFNGLXCREATEPBUFFERPROC glxGraphicsStateGuardian::_glXCreatePbuffer |
Definition at line 120 of file glxGraphicsStateGuardian.h.
PFNGLXCREATEPIXMAPPROC glxGraphicsStateGuardian::_glXCreatePixmap |
Definition at line 115 of file glxGraphicsStateGuardian.h.
PFNGLXDESTROYPBUFFERPROC glxGraphicsStateGuardian::_glXDestroyPbuffer |
Definition at line 122 of file glxGraphicsStateGuardian.h.
PFNGLXGETFBCONFIGATTRIBPROC glxGraphicsStateGuardian::_glXGetFBConfigAttrib |
Definition at line 114 of file glxGraphicsStateGuardian.h.
PFNGLXGETVISUALFROMFBCONFIGPROC glxGraphicsStateGuardian::_glXGetVisualFromFBConfig |
Definition at line 113 of file glxGraphicsStateGuardian.h.
PFNGLXSWAPINTERVALSGIPROC glxGraphicsStateGuardian::_glXSwapIntervalSGI |
Definition at line 108 of file glxGraphicsStateGuardian.h.
int glxGraphicsStateGuardian::_screen |
Definition at line 96 of file glxGraphicsStateGuardian.h.
GLXContext glxGraphicsStateGuardian::_share_context |
Definition at line 93 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_slow |
Definition at line 104 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_supports_fbconfig |
Definition at line 110 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_supports_pbuffer |
Definition at line 118 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_supports_swap_control |
Definition at line 107 of file glxGraphicsStateGuardian.h.
bool glxGraphicsStateGuardian::_uses_sgix_pbuffer |
Definition at line 119 of file glxGraphicsStateGuardian.h.
XVisualInfo* glxGraphicsStateGuardian::_visual |
Definition at line 97 of file glxGraphicsStateGuardian.h.
XVisualInfo* glxGraphicsStateGuardian::_visuals |
Definition at line 98 of file glxGraphicsStateGuardian.h.