Panda3D
 All Classes Functions Variables Enumerations
eggRenderState.I
1 // Filename: eggRenderState.I
2 // Created by: drose (12Mar05)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: EggRenderState::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 EggRenderState::
22 EggRenderState(EggLoader &loader) :
23  _state(RenderState::make_empty()),
24  _hidden(false),
25  _flat_shaded(false),
26  _primitive_type(Geom::PT_none),
27  _loader(loader)
28 {
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: EggRenderState::add_attrib
33 // Access: Public
34 // Description: A convenience function to add the indicated render
35 // attribute to the aggregate state.
36 ////////////////////////////////////////////////////////////////////
37 INLINE void EggRenderState::
38 add_attrib(const RenderAttrib *attrib) {
39  _state = _state->add_attrib(attrib);
40 }
This is the base class for a number of render attributes (other than transform) that may be set on sc...
Definition: renderAttrib.h:60
void add_attrib(const RenderAttrib *attrib)
A convenience function to add the indicated render attribute to the aggregate state.
A container for geometry primitives.
Definition: geom.h:58
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Definition: renderState.h:53
Converts an egg data structure, possibly read from an egg file but not necessarily, into a scene graph suitable for rendering.
Definition: eggLoader.h:70