Visual Computing Library
Loading...
Searching...
No Matches
vcl::TexCoordIndexed< Scalar > Class Template Reference

The TexCoordIndexed class represents a texture coordinate with an index. More...

#include <vclib/space/core/tex_coord_indexed.h>

Inheritance diagram for vcl::TexCoordIndexed< Scalar >:

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
 
ushortindex ()
 
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)
 
- Public Member Functions inherited from vcl::TexCoord< Scalar >
 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

- Public Types inherited from vcl::TexCoord< Scalar >
using ScalarType = Scalar
 

Detailed Description

template<typename Scalar>
class vcl::TexCoordIndexed< 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.

Template Parameters
ScalarThe scalar type of the texture coordinate components.

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