15 #include "xFileVertex.h"
16 #include "eggVertex.h"
17 #include "eggPrimitive.h"
18 #include "config_xfile.h"
29 _point.set(0.0, 0.0, 0.0);
31 _color.set(1.0f, 1.0f, 1.0f, 1.0f);
54 if (egg_vertex->
has_uv()) {
70 if (egg_vertex->has_color()) {
73 }
else if (egg_prim->has_color()) {
int compare_to(const LVecBase4f &other) const
This flavor of compare_to uses a default threshold value based on the numeric type.
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
LTexCoordd get_uv() const
Returns the unnamed UV coordinate pair on the vertex.
LColor get_color() const
Returns the color set on this particular attribute.
bool has_uv() const
Returns true if the vertex has an unnamed UV coordinate pair, false otherwise.
Defines a texture map that may be applied to geometry.
LVertexd get_pos3() const
Valid if get_num_dimensions() returns 3 or 4.
This is a two-component point in space.
const LMatrix4d & get_vertex_to_node() const
Returns the transformation matrix suitable for converting the vertices as read from the egg file into...
EggTexture * get_texture() const
Returns the first texture on the primitive, if any, or NULL if there are no textures on the primitive...
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...
const LMatrix4d & get_vertex_frame() const
Returns the coordinate frame of the vertices referenced by primitives at or under this node...
This represents a single vertex associated with an XFileFace.
int compare_to(const LVecBase2d &other) const
This flavor of compare_to uses a default threshold value based on the numeric type.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
int compare_to(const LVecBase3d &other) const
This flavor of compare_to uses a default threshold value based on the numeric type.
bool has_texture() const
Returns true if the primitive has any textures specified, false otherwise.