15 #include "config_wgldisplay.h"
16 #include "wglGraphicsBuffer.h"
17 #include "wglGraphicsPipe.h"
18 #include "wglGraphicsStateGuardian.h"
19 #include "wglGraphicsWindow.h"
20 #include "graphicsPipeSelection.h"
22 #include "pandaSystem.h"
24 Configure(config_wgldisplay);
25 NotifyCategoryDef(wgldisplay,
"display");
27 ConfigureFn(config_wgldisplay) {
32 (
"gl-force-pixfmt", 0);
35 (
"gl-force-invalid",
false,
36 PRC_DESC(
"Set this true to force all GL windows to fail to open "
37 "correctly (for debugging)."));
40 (
"gl-do-vidmemsize-check",
true,
41 PRC_DESC(
"This is true to insist that low-memory cards open only 640x480 "
42 "fullscreen windows, no matter what resolution of window was "
43 "requested. It only affects fullscreen windows."));
54 init_libwgldisplay() {
55 static bool initialized =
false;
61 wglGraphicsBuffer::init_type();
62 wglGraphicsPipe::init_type();
63 wglGraphicsStateGuardian::init_type();
64 wglGraphicsWindow::init_type();
68 wglGraphicsPipe::pipe_constructor);
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.
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.
bool add_pipe_type(TypeHandle type, PipeConstructorFunc *func)
Adds a new kind of GraphicsPipe to the list of available pipes for creation.
This is a convenience class to specialize ConfigVariable as an integer type.
void set_system_tag(const string &system, const string &tag, const string &value)
Intended for use by each subsystem to register its set of capabilities at startup.