Panda3D
|
Public Member Functions | |
RenderCallbackData (CallbackGraphicsWindow *window, RenderCallbackType callback_type, FrameMode frame_mode) | |
virtual TypeHandle | force_init_type () |
CallbackGraphicsWindow::RenderCallbackType | get_callback_type () const |
Since the render callback is shared for several functions, this method is needed to indicate which particular function is being invoked with this callback. | |
GraphicsOutput::FrameMode | get_frame_mode () const |
If the callback type (returned by get_callback_type) is RCT_begin_frame or RCT_end_frame, then this method will return the particular frame mode indicating what, precisely, we want to do this frame. | |
bool | get_render_flag () const |
Returns the current setting of the render flag. | |
virtual TypeHandle | get_type () const |
void | set_render_flag (bool render_flag) |
If the callback type is RCT_begin_frame, this call is available to specify the return value from the begin_frame() call. | |
virtual void | upcall () |
You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Definition at line 134 of file callbackGraphicsWindow.h.
CallbackGraphicsWindow::RenderCallbackType CallbackGraphicsWindow::RenderCallbackData::get_callback_type | ( | ) | const [inline] |
Since the render callback is shared for several functions, this method is needed to indicate which particular function is being invoked with this callback.
Definition at line 220 of file callbackGraphicsWindow.I.
GraphicsOutput::FrameMode CallbackGraphicsWindow::RenderCallbackData::get_frame_mode | ( | ) | const [inline] |
If the callback type (returned by get_callback_type) is RCT_begin_frame or RCT_end_frame, then this method will return the particular frame mode indicating what, precisely, we want to do this frame.
Definition at line 233 of file callbackGraphicsWindow.I.
bool CallbackGraphicsWindow::RenderCallbackData::get_render_flag | ( | ) | const [inline] |
Returns the current setting of the render flag.
See set_render_flag().
Definition at line 258 of file callbackGraphicsWindow.I.
Referenced by CallbackGraphicsWindow::begin_frame().
static void CallbackGraphicsWindow::RenderCallbackData::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from CallbackGraphicsWindow::WindowCallbackData.
Definition at line 156 of file callbackGraphicsWindow.h.
void CallbackGraphicsWindow::RenderCallbackData::set_render_flag | ( | bool | render_flag | ) | [inline] |
If the callback type is RCT_begin_frame, this call is available to specify the return value from the begin_frame() call.
If this is true (the default), the frame is rendered normally; if it is false, the frame is omitted.
Definition at line 247 of file callbackGraphicsWindow.I.
void CallbackGraphicsWindow::RenderCallbackData::upcall | ( | ) | [virtual] |
You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback.
Reimplemented from CallbackData.
Definition at line 295 of file callbackGraphicsWindow.cxx.
References Thread::get_current_thread().