11 #include <Carbon/Carbon.h>
13 #include "config_osxdisplay.h"
14 #include "osxGraphicsBuffer.h"
15 #include "osxGraphicsPipe.h"
16 #include "osxGraphicsStateGuardian.h"
17 #include "osxGraphicsWindow.h"
19 #include "graphicsPipeSelection.h"
21 #include "pandaSystem.h"
24 Configure(config_osxdisplay);
26 NotifyCategoryDef(osxdisplay,
"display");
28 ConfigureFn(config_osxdisplay) {
33 (
"show-resize-box",
true,
34 PRC_DESC(
"When this variable is true, then resizable OSX Panda windows will "
35 "be rendered with a resize control in the lower-right corner. "
36 "This is specially handled by Panda, since otherwise the 3-d "
37 "window would completely hide any resize control drawn by the "
38 "OS. Set this variable false to allow this control to be hidden."));
41 (
"osx-support-gl-buffer",
true,
42 PRC_DESC(
"Set this true to support use of GLBuffers on OSX. When true, there is a risk of "
43 "a program crash due to buggy driver support for GLBuffers. "
44 "If this is false, offscreen buffers will be created as "
45 "AGLPbuffers, which are less powerful, and appear to have their "
46 "own set of problems."));
49 (
"osx-disable-event-loop",
false,
50 PRC_DESC(
"Set this true to disable the window event loop for the Panda "
51 "windows. This makes sense only in a publish environment where "
52 "the window event loop is already handled by another part of the "
56 (
"osx-mouse-wheel-scale", 1,
57 PRC_DESC(
"Specify the number of units to spin the Mac mouse wheel to "
58 "represent a single wheel_up or wheel_down message."));
69 init_libosxdisplay() {
70 static bool initialized =
false;
76 osxGraphicsBuffer::init_type();
77 osxGraphicsPipe::init_type();
78 osxGraphicsWindow::init_type();
79 osxGraphicsStateGuardian::init_type();
82 selection->
add_pipe_type(osxGraphicsPipe::get_class_type(), osxGraphicsPipe::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.