Panda3D

eggRenderState.I

00001 // Filename: eggRenderState.I
00002 // Created by:  drose (12Mar05)
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: EggRenderState::Constructor
00018 //       Access: Public
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 EggRenderState::
00022 EggRenderState(EggLoader &loader) :
00023   _state(RenderState::make_empty()),
00024   _hidden(false),
00025   _flat_shaded(false),
00026   _primitive_type(Geom::PT_none),
00027   _loader(loader)
00028 {
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: EggRenderState::add_attrib
00033 //       Access: Public
00034 //  Description: A convenience function to add the indicated render
00035 //               attribute to the aggregate state.
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE void EggRenderState::
00038 add_attrib(const RenderAttrib *attrib) {
00039   _state = _state->add_attrib(attrib);
00040 }
 All Classes Functions Variables Enumerations