44 INLINE
const std::string &
get_name()
const;
47 vector_PT_EggVertex &egg_vertices,
48 PN_stdfloat &smooth_angle);
59 F_luminosity = 0x0004,
61 F_reflection = 0x0010,
62 F_transparency = 0x0020,
64 F_translucency = 0x0080,
65 F_smooth_angle = 0x0100,
72 PN_stdfloat _luminosity;
73 PN_stdfloat _specular;
74 PN_stdfloat _reflection;
75 PN_stdfloat _transparency;
77 PN_stdfloat _translucency;
78 PN_stdfloat _smooth_angle;
82 LColor _diffuse_color;
87 bool _checked_material;
88 PT_EggMaterial _egg_material;
90 bool _checked_texture;
91 PT_EggTexture _egg_texture;
96 void generate_uvs(vector_PT_EggVertex &egg_vertices);
98 LPoint2d map_planar(
const LPoint3d &pos,
const LPoint3d ¢roid)
const;
99 LPoint2d map_spherical(
const LPoint3d &pos,
const LPoint3d ¢roid)
const;
100 LPoint2d map_cylindrical(
const LPoint3d &pos,
const LPoint3d ¢roid)
const;
101 LPoint2d map_cubic(
const LPoint3d &pos,
const LPoint3d ¢roid)
const;
104 LPoint2d (
CLwoSurface::*_map_uvs)(
const LPoint3d &pos,
const LPoint3d ¢roid)
const;
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.
const std::string & get_name() const
Returns the name of the surface.
const std::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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is a wrapper around LwoSurfaceBlock and stores additional information useful during the co...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Describes the shading attributes of a surface.
A texture layer or shader, part of a LwoSurface chunk.
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void apply_properties(EggPrimitive *egg_prim, vector_PT_EggVertex &egg_vertices, PN_stdfloat &smooth_angle)
Applies the color, texture, etc.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
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.