LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
LibCarna::base::PNVertex Struct Reference

Defines vertex that consists of the two attributes position and normal vector. More...

#include <Vertex.hpp>

+ Inheritance diagram for LibCarna::base::PNVertex:
+ Collaboration diagram for LibCarna::base::PNVertex:

Public Member Functions

 VERTEX_NULL_COMPONENT (Color)
 
- Public Member Functions inherited from LibCarna::base::VertexPosition
 VertexPosition ()
 
template<typename VectorType >
void setPosition (const VectorType &position)
 
- Public Member Functions inherited from LibCarna::base::VertexNormal
 VertexNormal ()
 
template<typename VectorType >
void setNormal (const VectorType &normal)
 

Static Public Attributes

static const VertexAttributes attributes
 Holds the declaration of the vertex format.
 

Additional Inherited Members

- Public Attributes inherited from LibCarna::base::VertexPosition
float x
 Holds the positional x-component of this vertex.
 
float y
 Holds the positional y-component of this vertex.
 
float z
 Holds the positional z-component of this vertex.
 
float w
 Holds the positional w-component of this vertex. This will be 1 usually.
 
- Public Attributes inherited from LibCarna::base::VertexNormal
float nx
 Holds the normal vector x-component of this vertex.
 
float ny
 Holds the normal vector y-component of this vertex.
 
float nz
 Holds the normal vector z-component of this vertex.
 
float nw
 Holds the normal vector w-component of this vertex. This will be 0 usually.
 

Detailed Description

Defines vertex that consists of the two attributes position and normal vector.

Author
Leonid Kostrykin

Definition at line 301 of file Vertex.hpp.

Member Function Documentation

◆ VERTEX_NULL_COMPONENT()

LibCarna::base::PNVertex::VERTEX_NULL_COMPONENT ( Color  )

Declares missing component.

Member Data Documentation

◆ attributes

const VertexAttributes LibCarna::base::PNVertex::attributes
static

Holds the declaration of the vertex format.

Definition at line 308 of file Vertex.hpp.


The documentation for this struct was generated from the following file: