Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/display/renderBuffer.h

Go to the documentation of this file.
00001 // Filename: renderBuffer.h
00002 // Created by:  drose (02Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef RENDERBUFFER_H
00020 #define RENDERBUFFER_H
00021 
00022 #include "pandabase.h"
00023 
00024 class GraphicsStateGuardian;
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : RenderBuffer
00028 // Description : A RenderBuffer is an arbitrary subset of the various
00029 //               layers (depth buffer, color buffer, etc.) of a
00030 //               drawing region.  It consists of a
00031 //               GraphicsStateGuardian pointer, along with a bitmask
00032 //               of the layers we're interested in.
00033 ////////////////////////////////////////////////////////////////////
00034 class EXPCL_PANDA RenderBuffer {
00035 public:
00036   enum Type {
00037     T_front_left       = 0x0001,
00038     T_back_left        = 0x0002,
00039     T_front_right      = 0x0004,
00040     T_back_right       = 0x0008,
00041 
00042     T_front            = 0x0005,
00043     T_back             = 0x000a,
00044     T_left             = 0x0003,
00045     T_right            = 0x000c,
00046 
00047     T_color            = 0x000f,
00048 
00049     T_depth            = 0x0010,
00050     T_stencil          = 0x0020,
00051     T_accum            = 0x0040,
00052   };
00053 
00054 
00055   RenderBuffer(GraphicsStateGuardian *gsg, int buffer_type)
00056     : _gsg(gsg), _buffer_type(buffer_type) { }
00057 
00058   GraphicsStateGuardian *_gsg;
00059   int _buffer_type;
00060 };
00061 
00062 #endif

Generated on Fri May 2 00:36:35 2003 for Panda by doxygen1.3