14#ifndef EGGRENDERSTATE_H
15#define EGGRENDERSTATE_H
39class EXPCL_PANDA_EGG2PG EggRenderState :
public EggUserData {
46 int compare_to(
const EggRenderState &other)
const;
51 static TexGenAttrib::Mode get_tex_gen(
const EggTexture *egg_tex);
61 Geom::PrimitiveType _primitive_type;
63 typedef EggLoader::BakeInUVs BakeInUVs;
64 typedef EggLoader::TextureDef TextureDef;
65 typedef EggLoader::Materials Materials;
67 BakeInUVs _bake_in_uvs;
72 typedef pvector<const TextureDef *> TexMatTextures;
73 typedef pmap<LMatrix4d, TexMatTextures> TexMatTransforms;
74 typedef pmap<CPT(
InternalName), TexMatTransforms> TexMats;
Converts an egg data structure, possibly read from an egg file but not necessarily,...
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
void add_attrib(const RenderAttrib *attrib)
A convenience function to add the indicated render attribute to the aggregate state.
void fill_state(EggPrimitive *egg_prim)
Sets up the state as appropriate for the indicated primitive.
int compare_to(const EggRenderState &other) const
Provides a unique ordering for different EggRenderState objects, so that primitives of similar state ...
Defines a texture map that may be applied to geometry.
Encodes a string name in a hash table, mapping it to a pointer.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Defines the properties of a named stage of the multitexture pipeline.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.