18 #include "pandatoolbase.h"
20 #include "cLwoSurfaceBlock.h"
22 #include "lwoSurface.h"
24 #include "eggTexture.h"
25 #include "eggMaterial.h"
26 #include "pt_EggTexture.h"
27 #include "pt_EggMaterial.h"
28 #include "vector_PT_EggVertex.h"
47 INLINE
const string &
get_name()
const;
50 vector_PT_EggVertex &egg_vertices,
51 PN_stdfloat &smooth_angle);
62 F_luminosity = 0x0004,
64 F_reflection = 0x0010,
65 F_transparency = 0x0020,
67 F_translucency = 0x0080,
68 F_smooth_angle = 0x0100,
75 PN_stdfloat _luminosity;
76 PN_stdfloat _specular;
77 PN_stdfloat _reflection;
78 PN_stdfloat _transparency;
80 PN_stdfloat _translucency;
81 PN_stdfloat _smooth_angle;
90 bool _checked_material;
91 PT_EggMaterial _egg_material;
93 bool _checked_texture;
94 PT_EggTexture _egg_texture;
99 void generate_uvs(vector_PT_EggVertex &egg_vertices);
110 #include "cLwoSurface.I"
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
bool check_material()
Checks whether the surface demands a material or not.
This is the base class for all three-component vectors and points.
bool has_named_uvs() const
Returns true if the surface is set up to reference UV's stored on the vertices, by name (as opposed t...
This class is a wrapper around LwoSurfaceBlock and stores additional information useful during the co...
const string & get_name() const
Returns the name of the surface.
Describes the shading attributes of a surface.
This is a two-component point in space.
A texture layer or shader, part of a LwoSurface chunk.
bool check_texture()
Checks whether the surface demands a texture or not.
This class is a wrapper around LwoSurface and stores additional information useful during the convers...
const string & get_uv_name() const
Returns the name of the set of UV's that are associated with this surface, if has_named_uvs() is true...
void apply_properties(EggPrimitive *egg_prim, vector_PT_EggVertex &egg_vertices, PN_stdfloat &smooth_angle)
Applies the color, texture, etc.
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
This is the base class for all three-component vectors and points.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...