Visual Computing Library
|
The TexCoordIndexed class represents a texture coordinate with an index. More...
#include <vclib/space/core/tex_coord_indexed.h>
Public Member Functions | |
TexCoordIndexed (const Base &base, ushort index) | |
TexCoordIndexed (const Scalar &s1, const Scalar &s2, ushort index) | |
TexCoordIndexed (const Point2< Scalar > &p, ushort index) | |
template<typename S > | |
auto | cast () const |
ushort | index () const |
ushort & | index () |
void | set (const Scalar &s1, const Scalar &s2, ushort index) |
void | serialize (std::ostream &os) const |
void | deserialize (std::istream &is) |
auto | operator<=> (const TexCoordIndexed &t1) const =default |
void | set (Scalar u, Scalar v) |
![]() | |
TexCoord (const Scalar &s1, const Scalar &s2) | |
TexCoord (const Point2< Scalar > &p) | |
template<typename S > | |
auto | cast () const |
Scalar | u () const |
Scalar | v () const |
Scalar & | u () |
Scalar & | v () |
void | setU (Scalar s) |
void | setV (Scalar s) |
void | set (Scalar u, Scalar v) |
void | serialize (std::ostream &os) const |
void | deserialize (std::istream &is) |
Scalar & | operator() (uint i) |
const Scalar & | operator() (uint i) const |
Scalar & | operator[] (uint i) |
const Scalar & | operator[] (uint i) const |
auto | operator<=> (const TexCoord &t1) const =default |
Private Types | |
using | Base = TexCoord< Scalar > |
Private Attributes | |
ushort | mIndex = 0 |
Additional Inherited Members | |
![]() | |
using | ScalarType = Scalar |
The TexCoordIndexed class represents a texture coordinate with an index.
The TexCoordIndexed class represents a texture coordinate with an index. The class is a specialization of the TexCoord class template, where the two components of the texture coordinate are named u
and v
. The class adds an index member variable that represents the index of the texture coordinate.
Scalar | The scalar type of the texture coordinate components. |