Panda3D
Public Types | Public Member Functions | Public Attributes
EggRenderState Class Reference

This class is used within this package only to record the render state that should be assigned to each primitive. More...

#include "eggRenderState.h"

Inheritance diagram for EggRenderState:
EggUserData TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Types

typedef EggLoader::BakeInUVs BakeInUVs
typedef EggLoader::Materials Materials
typedef EggLoader::TextureDef TextureDef

Public Member Functions

 EggRenderState (EggLoader &loader)
void add_attrib (const RenderAttrib *attrib)
 A convenience function to add the indicated render attribute to the aggregate state.
int compare_to (const EggRenderState &other) const
 Provides a unique ordering for different EggRenderState objects, so that primitives of similar state can be grouped together by the EggBinner.
 CPT (RenderState) _state
void fill_state (EggPrimitive *egg_prim)
 Sets up the state as appropriate for the indicated primitive.

Public Attributes

BakeInUVs _bake_in_uvs
bool _flat_shaded
bool _hidden
Geom::PrimitiveType _primitive_type

Detailed Description

This class is used within this package only to record the render state that should be assigned to each primitive.

It is assigned to EggPrimitive objects via the EggBinner.

Definition at line 42 of file eggRenderState.h.


Member Function Documentation

void EggRenderState::add_attrib ( const RenderAttrib attrib) [inline]

A convenience function to add the indicated render attribute to the aggregate state.

Definition at line 38 of file eggRenderState.I.

Referenced by fill_state(), and EggLoader::make_polyset().

int EggRenderState::compare_to ( const EggRenderState other) const

Provides a unique ordering for different EggRenderState objects, so that primitives of similar state can be grouped together by the EggBinner.

Definition at line 436 of file eggRenderState.cxx.

Referenced by EggBinner::sorts_less().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations