Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::video::S3DVertexTangents Class Reference

Vertex with a tangent and binormal vector. More...

#include <nirtcpp/core/engine/S3DVertex.hpp>

Inheritance diagram for nirt::video::S3DVertexTangents:
Inheritance graph
Collaboration diagram for nirt::video::S3DVertexTangents:
Collaboration graph

Public Member Functions

 S3DVertexTangents ()
 default constructor
 
 S3DVertexTangents (f32 x, f32 y, f32 z, f32 nx=0.0f, f32 ny=0.0f, f32 nz=0.0f, SColor c=0xFFFFFFFF, f32 tu=0.0f, f32 tv=0.0f, f32 tanx=0.0f, f32 tany=0.0f, f32 tanz=0.0f, f32 bx=0.0f, f32 by=0.0f, f32 bz=0.0f)
 constructor
 
 S3DVertexTangents (const core::vector3df &pos, SColor c, const core::vector2df &tcoords)
 constructor
 
 S3DVertexTangents (const core::vector3df &pos, const core::vector3df &normal, SColor c, const core::vector2df &tcoords, const core::vector3df &tangent=core::vector3df(), const core::vector3df &binormal=core::vector3df())
 constructor
 
 S3DVertexTangents (const S3DVertex &o)
 constructor from S3DVertex
 
bool operator== (const S3DVertexTangents &other) const
 
bool operator!= (const S3DVertexTangents &other) const
 
bool operator< (const S3DVertexTangents &other) const
 
S3DVertexTangents getInterpolated (const S3DVertexTangents &other, f32 d)
 
- Public Member Functions inherited from nirt::video::S3DVertex
 S3DVertex ()
 default constructor
 
 S3DVertex (f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv)
 constructor
 
 S3DVertex (const core::vector3df &pos, const core::vector3df &normal, SColor color, const core::vector2d< f32 > &tcoords)
 constructor
 
bool operator== (const S3DVertex &other) const
 
bool operator!= (const S3DVertex &other) const
 
bool operator< (const S3DVertex &other) const
 
S3DVertex getInterpolated (const S3DVertex &other, f32 d)
 

Static Public Member Functions

static E_VERTEX_TYPE getType ()
 
- Static Public Member Functions inherited from nirt::video::S3DVertex
static E_VERTEX_TYPE getType ()
 Get type of the class.
 

Public Attributes

core::vector3df Tangent
 Tangent vector along the x-axis of the texture.
 
core::vector3df Binormal
 Binormal vector (tangent x normal)
 
- Public Attributes inherited from nirt::video::S3DVertex
core::vector3df Pos
 Position.
 
core::vector3df Normal
 Normal vector.
 
SColor Color
 Color.
 
core::vector2d< f32TCoords
 Texture coordinates.
 

Detailed Description

Vertex with a tangent and binormal vector.

Usually used for tangent space normal mapping. Usually tangent and binormal get send to shaders as texture coordinate sets 1 and 2.


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

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print