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

panda/src/pgraph/cullFaceAttrib.I

Go to the documentation of this file.
00001 // Filename: cullFaceAttrib.I
00002 // Created by:  drose (27Feb02)
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 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: CullFaceAttrib::Constructor
00022 //       Access: Private
00023 //  Description: Use CullFaceAttrib::make() to construct a new
00024 //               CullFaceAttrib object.
00025 ////////////////////////////////////////////////////////////////////
00026 INLINE CullFaceAttrib::
00027 CullFaceAttrib(CullFaceAttrib::Mode mode, bool reverse) :
00028   _mode(mode),
00029   _reverse(reverse)
00030 {
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //     Function: CullFaceAttrib::get_actual_mode
00035 //       Access: Published
00036 //  Description: Returns the actual culling mode, without considering
00037 //               the effects of the reverse flag.  See also
00038 //               get_effective_mode().
00039 ////////////////////////////////////////////////////////////////////
00040 INLINE CullFaceAttrib::Mode CullFaceAttrib::
00041 get_actual_mode() const {
00042   return _mode;
00043 }
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: CullFaceAttrib::get_reverse
00047 //       Access: Published
00048 //  Description: Returns the 'reverse' flag.  If this is true, the
00049 //               actual cull direction (clockwise
00050 //               vs. counterclockwise) is the reverse of what is
00051 //               specified here.  This allows support for
00052 //               make_reverse(), which defines a CullFaceAttrib that
00053 //               reverses whatever the sense of culling would have
00054 //               been.
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE bool CullFaceAttrib::
00057 get_reverse() const {
00058   return _reverse;
00059 }

Generated on Fri May 2 00:41:28 2003 for Panda by doxygen1.3