arsa  2.7
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
irr::video::S3DVertex2TCoords Struct Reference

Vertex with two texture coordinates. More...

#include <S3DVertex.h>

Inheritance diagram for irr::video::S3DVertex2TCoords:
irr::video::S3DVertex

Public Member Functions

 S3DVertex2TCoords ()
 default constructor More...
 
 S3DVertex2TCoords (f32 x, f32 y, f32 z, SColor c, f32 tu, f32 tv, f32 tu2, f32 tv2)
 constructor with two different texture coords, but no normal More...
 
 S3DVertex2TCoords (const core::vector3df &pos, SColor color, const core::vector2d< f32 > &tcoords, const core::vector2d< f32 > &tcoords2)
 constructor with two different texture coords, but no normal More...
 
 S3DVertex2TCoords (const core::vector3df &pos, const core::vector3df &normal, const SColor &color, const core::vector2d< f32 > &tcoords, const core::vector2d< f32 > &tcoords2)
 constructor with all values More...
 
 S3DVertex2TCoords (f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv, f32 tu2, f32 tv2)
 constructor with all values More...
 
 S3DVertex2TCoords (f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv)
 constructor with the same texture coords and normal More...
 
 S3DVertex2TCoords (const core::vector3df &pos, const core::vector3df &normal, SColor color, const core::vector2d< f32 > &tcoords)
 constructor with the same texture coords and normal More...
 
 S3DVertex2TCoords (S3DVertex &o)
 constructor from S3DVertex More...
 
bool operator== (const S3DVertex2TCoords &other) const
 Equality operator. More...
 
bool operator!= (const S3DVertex2TCoords &other) const
 Inequality operator. More...
 
bool operator< (const S3DVertex2TCoords &other) const
 
S3DVertex2TCoords getInterpolated (const S3DVertex2TCoords &other, f32 d)
 
- 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...
 
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 irr::video::S3DVertex
static E_VERTEX_TYPE getType ()
 Get type of the class. More...
 

Public Attributes

core::vector2d< f32TCoords2
 Second set of texture coordinates. More...
 
- Public Attributes inherited from irr::video::S3DVertex
core::vector3df Pos
 Position. More...
 
core::vector3df Normal
 Normal vector. More...
 
SColor Color
 Color. More...
 
core::vector2d< f32TCoords
 Texture coordinates. More...
 

Detailed Description

Vertex with two texture coordinates.

Usually used for geometry with lightmaps or other special materials.

Definition at line 112 of file S3DVertex.h.

Constructor & Destructor Documentation

◆ S3DVertex2TCoords() [1/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( )
inline

default constructor

Definition at line 115 of file S3DVertex.h.

115 : S3DVertex() {}
S3DVertex()
default constructor
Definition: S3DVertex.h:47

◆ S3DVertex2TCoords() [2/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( f32  x,
f32  y,
f32  z,
SColor  c,
f32  tu,
f32  tv,
f32  tu2,
f32  tv2 
)
inline

constructor with two different texture coords, but no normal

Definition at line 118 of file S3DVertex.h.

119  : S3DVertex(x,y,z, 0.0f, 0.0f, 0.0f, c, tu,tv), TCoords2(tu2,tv2) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLfloat f
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
const GLubyte * c
GLdouble GLdouble z

◆ S3DVertex2TCoords() [3/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( const core::vector3df pos,
SColor  color,
const core::vector2d< f32 > &  tcoords,
const core::vector2d< f32 > &  tcoords2 
)
inline

constructor with two different texture coords, but no normal

Definition at line 122 of file S3DVertex.h.

124  : S3DVertex(pos, core::vector3df(), color, tcoords), TCoords2(tcoords2) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition: vector3d.h:461
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLuint color

◆ S3DVertex2TCoords() [4/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( const core::vector3df pos,
const core::vector3df normal,
const SColor color,
const core::vector2d< f32 > &  tcoords,
const core::vector2d< f32 > &  tcoords2 
)
inline

constructor with all values

Definition at line 127 of file S3DVertex.h.

129  : S3DVertex(pos, normal, color, tcoords), TCoords2(tcoords2) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLuint color

◆ S3DVertex2TCoords() [5/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( f32  x,
f32  y,
f32  z,
f32  nx,
f32  ny,
f32  nz,
SColor  c,
f32  tu,
f32  tv,
f32  tu2,
f32  tv2 
)
inline

constructor with all values

Definition at line 132 of file S3DVertex.h.

133  : S3DVertex(x,y,z, nx,ny,nz, c, tu,tv), TCoords2(tu2,tv2) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
GLfixed ny
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLbyte nx
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
GLfixed GLfixed nz
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
const GLubyte * c
GLdouble GLdouble z

◆ S3DVertex2TCoords() [6/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( f32  x,
f32  y,
f32  z,
f32  nx,
f32  ny,
f32  nz,
SColor  c,
f32  tu,
f32  tv 
)
inline

constructor with the same texture coords and normal

Definition at line 136 of file S3DVertex.h.

137  : S3DVertex(x,y,z, nx,ny,nz, c, tu,tv), TCoords2(tu,tv) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
GLfixed ny
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLbyte nx
GLint GLint GLint GLint GLint GLint y
Definition: SDL_opengl.h:1574
GLfixed GLfixed nz
GLint GLint GLint GLint GLint x
Definition: SDL_opengl.h:1574
const GLubyte * c
GLdouble GLdouble z

◆ S3DVertex2TCoords() [7/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( const core::vector3df pos,
const core::vector3df normal,
SColor  color,
const core::vector2d< f32 > &  tcoords 
)
inline

constructor with the same texture coords and normal

Definition at line 140 of file S3DVertex.h.

142  : S3DVertex(pos, normal, color, tcoords), TCoords2(tcoords) {}
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
S3DVertex()
default constructor
Definition: S3DVertex.h:47
GLuint color

◆ S3DVertex2TCoords() [8/8]

irr::video::S3DVertex2TCoords::S3DVertex2TCoords ( S3DVertex o)
inline

constructor from S3DVertex

Definition at line 145 of file S3DVertex.h.

145 : S3DVertex(o) {}
S3DVertex()
default constructor
Definition: S3DVertex.h:47

Member Function Documentation

◆ getInterpolated()

S3DVertex2TCoords irr::video::S3DVertex2TCoords::getInterpolated ( const S3DVertex2TCoords other,
f32  d 
)
inline

Definition at line 176 of file S3DVertex.h.

177  {
178  d = core::clamp(d, 0.0f, 1.0f);
179  return S3DVertex2TCoords(Pos.getInterpolated(other.Pos, d),
180  Normal.getInterpolated(other.Normal, d),
181  Color.getInterpolated(other.Color, d),
182  TCoords.getInterpolated(other.TCoords, d),
183  TCoords2.getInterpolated(other.TCoords2, d));
184  }
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148
SColor getInterpolated(const SColor &other, f32 d) const
Interpolates the color with a f32 value to another color.
Definition: SColor.h:455
vector3d< T > getInterpolated(const vector3d< T > &other, f64 d) const
Creates an interpolated vector between this vector and another vector.
Definition: vector3d.h:261
core::vector3df Pos
Position.
Definition: S3DVertex.h:59
S3DVertex2TCoords()
default constructor
Definition: S3DVertex.h:115
vector2d< T > getInterpolated(const vector2d< T > &other, f64 d) const
Creates an interpolated vector between this vector and another vector.
Definition: vector2d.h:316
GLfloat f
SColor Color
Color.
Definition: S3DVertex.h:65
core::vector2d< f32 > TCoords
Texture coordinates.
Definition: S3DVertex.h:68
core::vector3df Normal
Normal vector.
Definition: S3DVertex.h:62
const T clamp(const T &value, const T &low, const T &high)
clamps a value between low and high
Definition: irrMath.h:167

◆ getType()

static E_VERTEX_TYPE irr::video::S3DVertex2TCoords::getType ( )
inlinestatic

Definition at line 170 of file S3DVertex.h.

171  {
172  return EVT_2TCOORDS;
173  }
Vertex with two texture coordinates, video::S3DVertex2TCoords.
Definition: S3DVertex.h:25

◆ operator!=()

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

Inequality operator.

Definition at line 158 of file S3DVertex.h.

159  {
160  return ((static_cast<S3DVertex>(*this)!=other) ||
161  (TCoords2 != other.TCoords2));
162  }
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148

◆ operator<()

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

Definition at line 164 of file S3DVertex.h.

165  {
166  return ((static_cast<S3DVertex>(*this) < other) ||
167  ((static_cast<S3DVertex>(*this) == other) && (TCoords2 < other.TCoords2)));
168  }
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148

◆ operator==()

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

Equality operator.

Definition at line 151 of file S3DVertex.h.

152  {
153  return ((static_cast<S3DVertex>(*this)==other) &&
154  (TCoords2 == other.TCoords2));
155  }
core::vector2d< f32 > TCoords2
Second set of texture coordinates.
Definition: S3DVertex.h:148

Member Data Documentation

◆ TCoords2

core::vector2d<f32> irr::video::S3DVertex2TCoords::TCoords2

Second set of texture coordinates.

Definition at line 148 of file S3DVertex.h.


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