26 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_GLXDISPLAY) 27 #error Buildsystem error: BUILDING_PANDA_GLXDISPLAY not defined 30 Configure(config_glxdisplay);
31 NotifyCategoryDef(glxdisplay,
"display");
33 ConfigureFn(config_glxdisplay) {
38 (
"glx-get-proc-address",
true,
39 PRC_DESC(
"Set this to true to allow the use of glxGetProcAddress(), if " 40 "it is available, to query the OpenGL extension functions. This " 41 "is the standard way to query extension functions."));
45 (
"glx-get-os-address",
true,
46 PRC_DESC(
"Set this to true to allow Panda to query the OpenGL library " 47 "directly using standard operating system calls to locate " 48 "addresses of extension functions. This will be done only " 49 "if glxGetProcAddress() cannot be used for some reason."));
52 (
"glx-support-fbconfig",
true,
53 PRC_DESC(
"Set this true to enable the use of the advanced FBConfig " 54 "interface (as opposed to the older XVisual interface) " 55 "if it is available, to select a graphics visual and " 56 "create an OpenGL context."));
59 (
"glx-support-pbuffer",
true,
60 PRC_DESC(
"Set this true to enable the use of X pbuffer-based offscreen " 61 "buffers, if available. This is usually preferred over " 62 "pixmap-based buffers, but not all drivers support them."));
65 (
"glx-support-pixmap",
false,
66 PRC_DESC(
"Set this true to enable the use of X pixmap-based offscreen " 67 "buffers. This is false by default because pixmap-based buffers " 68 "are usually slower than pbuffer-based buffers."));
79 static bool initialized =
false;
85 #ifdef HAVE_GLXFBCONFIG 86 glxGraphicsBuffer::init_type();
87 #endif // HAVE_GLXFBCONFIG 88 glxGraphicsPipe::init_type();
89 glxGraphicsPixmap::init_type();
90 glxGraphicsBuffer::init_type();
91 glxGraphicsWindow::init_type();
92 glxGraphicsStateGuardian::init_type();
93 PosixGraphicsStateGuardian::init_type();
97 glxGraphicsPipe::pipe_constructor);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This maintains a list of GraphicsPipes by type that are available for creation.
static GraphicsPipeSelection * get_global_ptr()
Returns a pointer to the one global GraphicsPipeSelection object.
void set_system_tag(const std::string &system, const std::string &tag, const std::string &value)
Intended for use by each subsystem to register its set of capabilities at startup.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool add_pipe_type(TypeHandle type, PipeConstructorFunc *func)
Adds a new kind of GraphicsPipe to the list of available pipes for creation.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libglxdisplay()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.