Panda3D

eggRenderState.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file eggRenderState.I
10 * @author drose
11 * @date 2005-03-12
12 */
13
14 /**
15 *
16 */
17 EggRenderState::
18 EggRenderState(EggLoader &loader) :
19 _state(RenderState::make_empty()),
20 _hidden(false),
21 _flat_shaded(false),
22 _primitive_type(Geom::PT_none),
23 _loader(loader)
24 {
25 }
26
27 /**
28 * A convenience function to add the indicated render attribute to the
29 * aggregate state.
30 */
31 INLINE void EggRenderState::
32 add_attrib(const RenderAttrib *attrib) {
33 _state = _state->add_attrib(attrib);
34 }
EggLoader
Converts an egg data structure, possibly read from an egg file but not necessarily,...
Definition: eggLoader.h:67
EggRenderState::add_attrib
void add_attrib(const RenderAttrib *attrib)
A convenience function to add the indicated render attribute to the aggregate state.
Definition: eggRenderState.I:32
Geom
A container for geometry primitives.
Definition: geom.h:54
RenderAttrib
This is the base class for a number of render attributes (other than transform) that may be set on sc...
Definition: renderAttrib.h:51
RenderState
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Definition: renderState.h:47