Panda3D

cullFaceAttrib.I

00001 // Filename: cullFaceAttrib.I
00002 // Created by:  drose (27Feb02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: CullFaceAttrib::Constructor
00018 //       Access: Private
00019 //  Description: Use CullFaceAttrib::make() to construct a new
00020 //               CullFaceAttrib object.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE CullFaceAttrib::
00023 CullFaceAttrib(CullFaceAttrib::Mode mode, bool reverse) :
00024   _mode(mode),
00025   _reverse(reverse)
00026 {
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: CullFaceAttrib::get_actual_mode
00031 //       Access: Published
00032 //  Description: Returns the actual culling mode, without considering
00033 //               the effects of the reverse flag.  See also
00034 //               get_effective_mode().
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE CullFaceAttrib::Mode CullFaceAttrib::
00037 get_actual_mode() const {
00038   return _mode;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: CullFaceAttrib::get_reverse
00043 //       Access: Published
00044 //  Description: Returns the 'reverse' flag.  If this is true, the
00045 //               actual cull direction (clockwise
00046 //               vs. counterclockwise) is the reverse of what is
00047 //               specified here.  This allows support for
00048 //               make_reverse(), which defines a CullFaceAttrib that
00049 //               reverses whatever the sense of culling would have
00050 //               been.
00051 ////////////////////////////////////////////////////////////////////
00052 INLINE bool CullFaceAttrib::
00053 get_reverse() const {
00054   return _reverse;
00055 }
 All Classes Functions Variables Enumerations