A tiny specialization on GLGraphicsStateGuardian to add some wgl-specific information. More...
#include "osxGraphicsStateGuardian.h"
Public Member Functions | |
osxGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe, osxGraphicsStateGuardian *share_with) | |
void | atexit_function () |
This function is passed to the atexit function. More... | |
OSStatus | build_gl (bool full_screen, bool pbuffer, FrameBufferProperties &fb_props) |
This function will build up a context for a gsg. More... | |
void | draw_resize_box () |
Draws an OSX-style resize icon in the bottom right corner of the current display region. More... | |
virtual TypeHandle | force_init_type () |
const AGLPixelFormat | get_agl_pixel_format () const |
AGLContext | get_context () |
bool | get_gamma_table () |
Static function for getting the orig gamma tables. More... | |
virtual TypeHandle | get_type () const |
virtual void | reset () |
Resets all internal state as if the gsg were newly created. More... | |
void | restore_gamma () |
Restore original gamma. More... | |
bool | set_gamma (PN_stdfloat gamma) |
Non static version of setting gamma. More... | |
bool | static_set_gamma (bool restore, PN_stdfloat gamma) |
Static function for setting gamma which is needed for atexit. More... | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
GLint | _shared_buffer |
Friends | |
class | osxGraphicsBuffer |
A tiny specialization on GLGraphicsStateGuardian to add some wgl-specific information.
Definition at line 32 of file osxGraphicsStateGuardian.h.
void osxGraphicsStateGuardian::atexit_function | ( | void | ) |
This function is passed to the atexit function.
Definition at line 457 of file osxGraphicsStateGuardian.cxx.
References static_set_gamma().
OSStatus osxGraphicsStateGuardian::build_gl | ( | bool | full_screen, |
bool | pbuffer, | ||
FrameBufferProperties & | fb_props | ||
) |
This function will build up a context for a gsg.
Definition at line 165 of file osxGraphicsStateGuardian.cxx.
void osxGraphicsStateGuardian::draw_resize_box | ( | ) |
Draws an OSX-style resize icon in the bottom right corner of the current display region.
This is normally done automatically at the end of each frame when the window is indicated as resizable, since the 3-D graphics overlay the normal, OS-drawn resize icon and the user won't be able see it.
Definition at line 106 of file osxGraphicsStateGuardian.cxx.
bool osxGraphicsStateGuardian::get_gamma_table | ( | void | ) |
Static function for getting the orig gamma tables.
Definition at line 375 of file osxGraphicsStateGuardian.cxx.
|
virtual |
Resets all internal state as if the gsg were newly created.
Definition at line 79 of file osxGraphicsStateGuardian.cxx.
void osxGraphicsStateGuardian::restore_gamma | ( | ) |
Restore original gamma.
Definition at line 449 of file osxGraphicsStateGuardian.cxx.
References static_set_gamma().
bool osxGraphicsStateGuardian::set_gamma | ( | PN_stdfloat | gamma | ) |
Non static version of setting gamma.
Returns true on success.
Definition at line 437 of file osxGraphicsStateGuardian.cxx.
References static_set_gamma().
bool osxGraphicsStateGuardian::static_set_gamma | ( | bool | restore, |
PN_stdfloat | gamma | ||
) |
Static function for setting gamma which is needed for atexit.
Definition at line 384 of file osxGraphicsStateGuardian.cxx.
Referenced by atexit_function(), restore_gamma(), and set_gamma().