Carna  Version 3.3.2
Public Member Functions | Static Public Attributes | List of all members
Carna::base::PNVertex Struct Reference

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

#include <Vertex.h>

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

Public Member Functions

 VERTEX_NULL_COMPONENT (Color)
 
- Public Member Functions inherited from Carna::base::VertexPosition
 VertexPosition ()
 
template<typename VectorType >
void setPosition (const VectorType &position)
 
- Public Member Functions inherited from Carna::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 Carna::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 Carna::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
Date
9.6.21
Since
API Version 3.2.0

Definition at line 310 of file Vertex.h.

Member Function Documentation

◆ VERTEX_NULL_COMPONENT()

Carna::base::PNVertex::VERTEX_NULL_COMPONENT ( Color  )

Declares missing component.

Since
API Version 3.2.0

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