26 _point.set(0.0, 0.0, 0.0);
28 _color.set(1.0f, 1.0f, 1.0f, 1.0f);
36 LVertexd pos = egg_vertex->
get_pos3();
49 if (egg_vertex->
has_uv()) {
50 LTexCoordd uv = egg_vertex->
get_uv();
65 if (egg_vertex->has_color()) {
68 }
else if (egg_prim->has_color()) {
80 ct = _point.compare_to(other._point);
82 ct = _uv.compare_to(other._uv);
85 ct = _color.compare_to(other._color);
LColor get_color() const
Returns the color set on this particular attribute.
const LMatrix4d & get_vertex_to_node() const
Returns the transformation matrix suitable for converting the vertices as read from the egg file into...
const LMatrix4d & get_vertex_frame() const
Returns the coordinate frame of the vertices referenced by primitives at or under this node.
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
bool has_texture() const
Returns true if the primitive has any textures specified, false otherwise.
get_texture
Returns the first texture on the primitive, if any, or NULL if there are no textures on the primitive...
Defines a texture map that may be applied to geometry.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
bool has_uv() const
Returns true if the vertex has an unnamed UV coordinate pair, false otherwise.
LTexCoordd get_uv() const
Returns the unnamed UV coordinate pair on the vertex.
LVertexd get_pos3() const
Valid if get_num_dimensions() returns 3 or 4.
This represents a single vertex associated with an XFileFace.
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_poly)
Sets the structure up from the indicated egg data.
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.