add get_frame_buffer

This commit is contained in:
David Rose 2009-10-20 20:09:07 +00:00
parent f998a9cf13
commit 024c9c31cb
2 changed files with 13 additions and 0 deletions

View File

@ -12,3 +12,14 @@
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: TinyGraphicsBuffer::get_frame_buffer
// Access: Public
// Description: Returns a direct pointer to the frame buffer used in
// this object.
////////////////////////////////////////////////////////////////////
ZBuffer *TinyGraphicsBuffer::
get_frame_buffer() {
return _frame_buffer;
}

View File

@ -37,6 +37,8 @@ public:
virtual bool begin_frame(FrameMode mode, Thread *current_thread);
virtual void end_frame(FrameMode mode, Thread *current_thread);
INLINE ZBuffer *get_frame_buffer();
protected:
virtual void close_buffer();
virtual bool open_buffer();