15#ifndef VERTEX_H_6014714286
16#define VERTEX_H_6014714286
68 template<
typename VectorType >
73template<
typename VectorType >
116 template<
typename VectorType >
121template<
typename VectorType >
163 template<
typename VectorType >
168template<
typename VectorType >
188#define VERTEX_NULL_COMPONENT( name ) \
189 template< typename VectorType > \
190 void set ## name( const VectorType& ) \
Contains forward-declarations.
Defines LibCarna::base::VertexAttributes.
Represents an association.
Represents a color. Objects from this class are copyable and assignable.
std::vector< VertexAttribute > VertexAttributes
Defines VertexAttribute vector.
Defines vertex that consists of the two attributes position and color.
VERTEX_NULL_COMPONENT(Normal)
static const VertexAttributes attributes
Holds the declaration of the vertex format.
Defines vertex that consists of the two attributes position and normal vector.
VERTEX_NULL_COMPONENT(Color)
static const VertexAttributes attributes
Holds the declaration of the vertex format.
Defines simple-most vertex that only consists of a positional attribute.
static const VertexAttributes attributes
Holds the declaration of the vertex format.
VERTEX_NULL_COMPONENT(Normal)
VERTEX_NULL_COMPONENT(Color)
Defines vertex component for colors. Usage is explained here.
void setColor(const VectorType &color)
float a
Holds the alpha color component of this vertex.
float g
Holds the green color component of this vertex.
float r
Holds the red color component of this vertex.
float b
Holds the blue color component of this vertex.
Defines vertex component for normal vectors. Usage is explained here.
void setNormal(const VectorType &normal)
float nx
Holds the normal vector x-component of this vertex.
float nw
Holds the normal vector w-component of this vertex. This will be 0 usually.
float ny
Holds the normal vector y-component of this vertex.
float nz
Holds the normal vector z-component of this vertex.
Defines vertex component for position vectors. Usage is explained here.
void setPosition(const VectorType &position)
float z
Holds the positional z-component of this vertex.
float y
Holds the positional y-component of this vertex.
float x
Holds the positional x-component of this vertex.
float w
Holds the positional w-component of this vertex. This will be 1 usually.