Panda3D

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CallbackGraphicsWindow::RenderCallbackData Class Reference
Inheritance diagram for CallbackGraphicsWindow::RenderCallbackData:

## Public Member Functions
| RenderCallbackData (CallbackGraphicsWindow *window, RenderCallbackType callback_type, FrameMode frame_mode)
virtual TypeHandle | force_init_type ()
CallbackGraphicsWindow::RenderCallbackType | get_callback_type () const
GraphicsOutput::FrameMode | get_frame_mode () const
bool | get_render_flag () const
virtual TypeHandle | get_type () const
void | set_render_flag (bool render_flag)
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.
Public Member Functions inherited from CallbackGraphicsWindow::WindowCallbackData
| WindowCallbackData (CallbackGraphicsWindow *window)
CallbackGraphicsWindow * | get_window () const
Public Member Functions inherited from CallbackData
virtual void | output (std::ostream &out) const
Public Member Functions inherited from TypedObject
| TypedObject (const TypedObject &copy)=default
TypedObject * | as_typed_object ()
| Returns the object, upcast (if necessary) to a TypedObject pointer.
const TypedObject * | as_typed_object () const
| Returns the object, upcast (if necessary) to a TypedObject pointer.
int | get_best_parent_from_Set (const std::set< int > &) const
int | get_type_index () const
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
bool | is_exact_type (TypeHandle handle) const
| Returns true if the current object is the indicated type exactly.
bool | is_of_type (TypeHandle handle) const
| Returns true if the current object is or derives from the indicated type.
TypedObject & | operator= (const TypedObject &copy)=default
Public Member Functions inherited from MemoryBase
void | operator delete (void *, void *)
void | operator delete (void *ptr)
void | operator delete[] (void *, void *)
void | operator delete[] (void *ptr)
void * | operator new (size_t size)
void * | operator new (size_t size, void *ptr)
void * | operator new[] (size_t size)
void * | operator new[] (size_t size, void *ptr)

## Static Public Member Functions
static TypeHandle | get_class_type ()
static void | init_type ()
Static Public Member Functions inherited from CallbackGraphicsWindow::WindowCallbackData
static TypeHandle | get_class_type ()
static void | init_type ()
Static Public Member Functions inherited from CallbackData
static TypeHandle | get_class_type ()
static void | init_type ()
Static Public Member Functions inherited from TypedObject
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.

## Public Attributes
| get_callback_type
| Since the render callback is shared for several functions, this method is needed to indicate which particular function is being invoked with this callback.
| get_frame_mode
| 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.
| get_render_flag
| Returns the current setting of the render flag.
| set_render_flag
| If the callback type is RCT_begin_frame, this call is available to specify the return value from the begin_frame() call.
Public Attributes inherited from CallbackGraphicsWindow::WindowCallbackData
| get_window
| Returns the window this callback was triggered from.
Public Attributes inherited from TypedObject
| get_type

## Detailed Description

Definition at line 130 of file callbackGraphicsWindow.h.

## Constructor & Destructor Documentation

## ◆ RenderCallbackData()

CallbackGraphicsWindow::RenderCallbackData::RenderCallbackData | ( | CallbackGraphicsWindow * | window,
|  | RenderCallbackType | callback_type,
|  | FrameMode | frame_mode )
| inline

Definition at line 158 of file callbackGraphicsWindow.I.

## Member Function Documentation

## ◆ force_init_type()

virtual TypeHandle CallbackGraphicsWindow::RenderCallbackData::force_init_type | ( |  | ) |
| inline virtual

Reimplemented from CallbackGraphicsWindow::WindowCallbackData.

Definition at line 163 of file callbackGraphicsWindow.h.

## ◆ get_class_type()

static TypeHandle CallbackGraphicsWindow::RenderCallbackData::get_class_type | ( |  | ) |
| inline static

Definition at line 152 of file callbackGraphicsWindow.h.

## ◆ get_type()

virtual TypeHandle CallbackGraphicsWindow::RenderCallbackData::get_type | ( |  | ) | const
| inline virtual

Reimplemented from CallbackGraphicsWindow::WindowCallbackData.

Definition at line 160 of file callbackGraphicsWindow.h.

## ◆ init_type()

static void CallbackGraphicsWindow::RenderCallbackData::init_type | ( |  | ) |
| inline static

Definition at line 155 of file callbackGraphicsWindow.h.

## ◆ upcall()

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 240 of file callbackGraphicsWindow.cxx.

References Thread::get_current_thread, and set_render_flag.

## Member Data Documentation

## ◆ get_callback_type

CallbackGraphicsWindow::RenderCallbackType CallbackGraphicsWindow::RenderCallbackData::get_callback_type
| 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 137 of file callbackGraphicsWindow.h.

## ◆ get_frame_mode

GraphicsOutput::FrameMode CallbackGraphicsWindow::RenderCallbackData::get_frame_mode
| 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 138 of file callbackGraphicsWindow.h.

## ◆ get_render_flag

bool CallbackGraphicsWindow::RenderCallbackData::get_render_flag
| inline

Returns the current setting of the render flag.

See set_render_flag().

Definition at line 142 of file callbackGraphicsWindow.h.

## ◆ set_render_flag

void CallbackGraphicsWindow::RenderCallbackData::set_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 142 of file callbackGraphicsWindow.h.

Referenced by upcall().

The documentation for this class was generated from the following files:

- panda/src/display/callbackGraphicsWindow.h
- panda/src/display/callbackGraphicsWindow.cxx
- panda/src/display/callbackGraphicsWindow.I