TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
TextureCoordinate Class Referencefinal

Class representing texture UV coordinates data. More...

#include <tdme/engine/model/TextureCoordinate.h>

Collaboration diagram for TextureCoordinate:
Collaboration graph

Public Member Functions

 TextureCoordinate ()
 Public constructor. More...
 
 TextureCoordinate (const TextureCoordinate &textureCoordinate)
 Public constructor. More...
 
 TextureCoordinate (const array< float, 2 > &uv)
 Public constructor. More...
 
 TextureCoordinate (float u, float v)
 Public constructor. More...
 
float getU () const
 
float getV () const
 
TextureCoordinateset (const TextureCoordinate &textureCoordinate)
 Set texture coordinate. More...
 
TextureCoordinateset (const array< float, 2 > &uv)
 Set texture coordinate. More...
 
TextureCoordinateset (float u, float v)
 Set texture coordinate. More...
 
array< float, 2 > & getArray () const
 
TextureCoordinate clone ()
 Clones the texture coordinate. More...
 
bool equals (const TextureCoordinate &textureCoordinate) const
 Compares this texture coordinate with given texture coordinate. More...
 

Private Attributes

array< float, 2 > data
 

Detailed Description

Class representing texture UV coordinates data.

Author
andreas.drewke
Version
$Id$

Definition at line 18 of file TextureCoordinate.h.

Constructor & Destructor Documentation

◆ TextureCoordinate() [1/4]

Public constructor.

Definition at line 10 of file TextureCoordinate.cpp.

◆ TextureCoordinate() [2/4]

TextureCoordinate ( const TextureCoordinate textureCoordinate)

Public constructor.

Parameters
textureCoordinatetexture coordinate

Definition at line 15 of file TextureCoordinate.cpp.

◆ TextureCoordinate() [3/4]

TextureCoordinate ( const array< float, 2 > &  uv)

Public constructor.

Parameters
uvtexture coordinate

Definition at line 20 of file TextureCoordinate.cpp.

◆ TextureCoordinate() [4/4]

TextureCoordinate ( float  u,
float  v 
)

Public constructor.

Parameters
uu
vv

Definition at line 25 of file TextureCoordinate.cpp.

Member Function Documentation

◆ clone()

TextureCoordinate clone ( )

Clones the texture coordinate.

Returns
new texture coordinate

Definition at line 47 of file TextureCoordinate.cpp.

◆ equals()

bool equals ( const TextureCoordinate textureCoordinate) const
inline

Compares this texture coordinate with given texture coordinate.

Returns
equality

Definition at line 97 of file TextureCoordinate.h.

◆ getArray()

array< float, 2 > & getArray ( ) const
inline
Returns
texture data as array

Definition at line 83 of file TextureCoordinate.h.

◆ getU()

float getU ( ) const
inline
Returns
U

Definition at line 50 of file TextureCoordinate.h.

◆ getV()

float getV ( ) const
inline
Returns
V

Definition at line 57 of file TextureCoordinate.h.

◆ set() [1/3]

TextureCoordinate & set ( const array< float, 2 > &  uv)

Set texture coordinate.

Parameters
uvtexture coordinate

Definition at line 36 of file TextureCoordinate.cpp.

◆ set() [2/3]

TextureCoordinate & set ( const TextureCoordinate textureCoordinate)

Set texture coordinate.

Parameters
textureCoordinatetexture coordinate

Definition at line 31 of file TextureCoordinate.cpp.

◆ set() [3/3]

TextureCoordinate & set ( float  u,
float  v 
)

Set texture coordinate.

Parameters
uu
vv

Definition at line 41 of file TextureCoordinate.cpp.

Member Data Documentation

◆ data

array<float, 2> data
private

Definition at line 21 of file TextureCoordinate.h.


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