Panda3D
|
An offscreen graphics buffer. More...
#include "tinyGraphicsBuffer.h"
Public Member Functions | |
TinyGraphicsBuffer (GraphicsEngine *engine, GraphicsPipe *pipe, const string &name, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg, GraphicsOutput *host) | |
virtual bool | begin_frame (FrameMode mode, Thread *current_thread) |
This function will be called within the draw thread before beginning rendering for a given frame. | |
virtual void | end_frame (FrameMode mode, Thread *current_thread) |
This function will be called within the draw thread after rendering is completed for a given frame. | |
virtual TypeHandle | force_init_type () |
ZBuffer * | get_frame_buffer () |
Returns a direct pointer to the frame buffer used in this object. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual void | close_buffer () |
Closes the buffer right now. | |
virtual bool | open_buffer () |
Opens the buffer right now. |
An offscreen graphics buffer.
Definition at line 26 of file tinyGraphicsBuffer.h.
bool TinyGraphicsBuffer::begin_frame | ( | FrameMode | mode, |
Thread * | current_thread | ||
) | [virtual] |
This function will be called within the draw thread before beginning rendering for a given frame.
It should do whatever setup is required, and return true if the frame should be rendered, or false if it should be skipped.
Reimplemented from GraphicsOutput.
Definition at line 61 of file tinyGraphicsBuffer.cxx.
References GraphicsOutput::begin_frame_spam(), GraphicsOutput::get_fb_properties(), and GraphicsStateGuardian::reset_if_new().
void TinyGraphicsBuffer::close_buffer | ( | ) | [protected, virtual] |
Closes the buffer right now.
Called from the buffer thread.
Reimplemented from GraphicsBuffer.
Definition at line 109 of file tinyGraphicsBuffer.cxx.
References GraphicsStateGuardian::clear().
Referenced by open_buffer().
void TinyGraphicsBuffer::end_frame | ( | FrameMode | mode, |
Thread * | current_thread | ||
) | [virtual] |
This function will be called within the draw thread after rendering is completed for a given frame.
It should do whatever finalization is required.
Reimplemented from GraphicsOutput.
Definition at line 85 of file tinyGraphicsBuffer.cxx.
References GraphicsOutput::clear_cube_map_selection(), GraphicsOutput::copy_to_textures(), GraphicsOutput::end_frame_spam(), and GraphicsOutput::trigger_flip().
ZBuffer * TinyGraphicsBuffer::get_frame_buffer | ( | ) | [inline] |
Returns a direct pointer to the frame buffer used in this object.
Definition at line 23 of file tinyGraphicsBuffer.I.
bool TinyGraphicsBuffer::open_buffer | ( | ) | [protected, virtual] |
Opens the buffer right now.
Called from the buffer thread. Returns true if the buffer is successfully opened, or false if there was a problem.
Reimplemented from GraphicsBuffer.
Definition at line 128 of file tinyGraphicsBuffer.cxx.
References close_buffer(), GraphicsStateGuardian::is_valid(), and GraphicsStateGuardian::reset_if_new().