Irrlicht 3D Engine
irr::video::S3DVertexTangents Struct Reference

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

#include <S3DVertex.h>

+ Inheritance diagram for irr::video::S3DVertexTangents:

Public Member Functions

 S3DVertexTangents ()
 default constructor More...
 
 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 More...
 
 S3DVertexTangents (const core::vector3df &pos, SColor c, const core::vector2df &tcoords)
 constructor More...
 
 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 More...
 
S3DVertexTangents getInterpolated (const S3DVertexTangents &other, f32 d)
 
E_VERTEX_TYPE getType () const
 
bool operator!= (const S3DVertexTangents &other) const
 
bool operator< (const S3DVertexTangents &other) const
 
bool operator== (const S3DVertexTangents &other) const
 
- Public Member Functions inherited from irr::video::S3DVertex
 S3DVertex ()
 default constructor More...
 
 S3DVertex (f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv)
 constructor More...
 
 S3DVertex (const core::vector3df &pos, const core::vector3df &normal, SColor color, const core::vector2d< f32 > &tcoords)
 constructor More...
 
S3DVertex getInterpolated (const S3DVertex &other, f32 d)
 
E_VERTEX_TYPE getType () const
 
bool operator!= (const S3DVertex &other) const
 
bool operator< (const S3DVertex &other) const
 
bool operator== (const S3DVertex &other) const
 

Public Attributes

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

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.

Definition at line 191 of file S3DVertex.h.

Constructor & Destructor Documentation

◆ S3DVertexTangents() [1/4]

irr::video::S3DVertexTangents::S3DVertexTangents ( )
inline

default constructor

Definition at line 194 of file S3DVertex.h.

Referenced by getInterpolated().

◆ S3DVertexTangents() [2/4]

irr::video::S3DVertexTangents::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 
)
inline

constructor

Definition at line 197 of file S3DVertex.h.

◆ S3DVertexTangents() [3/4]

irr::video::S3DVertexTangents::S3DVertexTangents ( const core::vector3df pos,
SColor  c,
const core::vector2df tcoords 
)
inline

constructor

Definition at line 204 of file S3DVertex.h.

◆ S3DVertexTangents() [4/4]

irr::video::S3DVertexTangents::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() 
)
inline

constructor

Definition at line 209 of file S3DVertex.h.

Member Function Documentation

◆ getInterpolated()

◆ getType()

E_VERTEX_TYPE irr::video::S3DVertexTangents::getType ( ) const
inline

Definition at line 243 of file S3DVertex.h.

References irr::video::EVT_TANGENTS.

◆ operator!=()

bool irr::video::S3DVertexTangents::operator!= ( const S3DVertexTangents other) const
inline

Definition at line 229 of file S3DVertex.h.

References Binormal, and Tangent.

◆ operator<()

bool irr::video::S3DVertexTangents::operator< ( const S3DVertexTangents other) const
inline

Definition at line 236 of file S3DVertex.h.

References Binormal, and Tangent.

◆ operator==()

bool irr::video::S3DVertexTangents::operator== ( const S3DVertexTangents other) const
inline

Definition at line 222 of file S3DVertex.h.

References Binormal, and Tangent.

Member Data Documentation

◆ Binormal

core::vector3df irr::video::S3DVertexTangents::Binormal

Binormal vector (tangent x normal)

Definition at line 220 of file S3DVertex.h.

Referenced by getInterpolated(), operator!=(), operator<(), and operator==().

◆ Tangent

core::vector3df irr::video::S3DVertexTangents::Tangent

Tangent vector along the x-axis of the texture.

Definition at line 217 of file S3DVertex.h.

Referenced by getInterpolated(), operator!=(), operator<(), and operator==().


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