15 #ifndef COCOAGRAPHICSSTATEGUARDIAN_H 16 #define COCOAGRAPHICSSTATEGUARDIAN_H 18 #include "pandabase.h" 19 #include "cocoaGraphicsPipe.h" 22 #import <AppKit/NSOpenGL.h> 33 NSOpenGLPixelFormat *pixel_format,
int virtual_screen);
35 CGDirectDisplayID display,
43 NSOpenGLContext *_share_context;
44 NSOpenGLContext *_context;
48 virtual void query_gl_version();
49 virtual void *do_get_extension_func(
const char *name);
55 static void init_type() {
56 GLGraphicsStateGuardian::init_type();
57 register_type(_type_handle,
"CocoaGraphicsStateGuardian",
58 GLGraphicsStateGuardian::get_class_type());
61 return get_class_type();
63 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
69 #include "cocoaGraphicsStateGuardian.I" const FrameBufferProperties & get_fb_properties() const
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
A tiny specialization on GLGraphicsStateGuardian to add some Cocoa-specific information.
An object to create GraphicsOutputs that share a particular 3-D API.
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...