23 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_OSXDISPLAY) 24 #error Buildsystem error: BUILDING_PANDA_OSXDISPLAY not defined 27 Configure(config_osxdisplay);
29 NotifyCategoryDef(osxdisplay,
"display");
31 ConfigureFn(config_osxdisplay) {
36 (
"show-resize-box",
true,
37 PRC_DESC(
"When this variable is true, then resizable OSX Panda windows will " 38 "be rendered with a resize control in the lower-right corner. " 39 "This is specially handled by Panda, since otherwise the 3-d " 40 "window would completely hide any resize control drawn by the " 41 "OS. Set this variable false to allow this control to be hidden."));
44 (
"osx-support-gl-buffer",
true,
45 PRC_DESC(
"Set this true to support use of GLBuffers on OSX. When true, there is a risk of " 46 "a program crash due to buggy driver support for GLBuffers. " 47 "If this is false, offscreen buffers will be created as " 48 "AGLPbuffers, which are less powerful, and appear to have their " 49 "own set of problems."));
52 (
"osx-disable-event-loop",
false,
53 PRC_DESC(
"Set this true to disable the window event loop for the Panda " 54 "windows. This makes sense only in a publish environment where " 55 "the window event loop is already handled by another part of the " 59 (
"osx-mouse-wheel-scale", 1,
60 PRC_DESC(
"Specify the number of units to spin the Mac mouse wheel to " 61 "represent a single wheel_up or wheel_down message."));
71 static bool initialized =
false;
77 osxGraphicsBuffer::init_type();
78 osxGraphicsPipe::init_type();
79 osxGraphicsWindow::init_type();
80 osxGraphicsStateGuardian::init_type();
83 selection->
add_pipe_type(osxGraphicsPipe::get_class_type(), osxGraphicsPipe::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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
void init_libosxdisplay()
Initializes the library.
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.
This is a convenience class to specialize ConfigVariable as an integer type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.