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);
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const LMatrix4d & get_vertex_frame() const
Returns the coordinate frame of the vertices referenced by primitives at or under this node.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LTexCoordd get_uv() const
Returns the unnamed UV coordinate pair on the vertex.
Defines a texture map that may be applied to geometry.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
LVertexd get_pos3() const
Valid if get_num_dimensions() returns 3 or 4.
LColor get_color() const
Returns the color set on this particular attribute.
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_poly)
Sets the structure up from the indicated egg data.
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.
bool has_texture() const
Returns true if the primitive has any textures specified, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents a single vertex associated with an XFileFace.
get_texture
Returns the first texture on the primitive, if any, or NULL if there are no textures on the primitive...
const LMatrix4d & get_vertex_to_node() const
Returns the transformation matrix suitable for converting the vertices as read from the egg file into...