added constant accessors without the infamous "c" prefix for color (C()) and texcoord (T()).
This commit is contained in:
parent
332b5d102d
commit
a82ac9639f
|
@ -402,6 +402,7 @@ template <class A, class T> class ColorOcf: public T {
|
||||||
public:
|
public:
|
||||||
typedef A ColorType;
|
typedef A ColorType;
|
||||||
ColorType &C() { assert((*this).Base().ColorEnabled); return (*this).Base().CV[(*this).Index()]; }
|
ColorType &C() { assert((*this).Base().ColorEnabled); return (*this).Base().CV[(*this).Index()]; }
|
||||||
|
const ColorType &C() const { return this->cC(); }
|
||||||
const ColorType &cC() const { assert((*this).Base().ColorEnabled); return (*this).Base().CV[(*this).Index()]; }
|
const ColorType &cC() const { assert((*this).Base().ColorEnabled); return (*this).Base().CV[(*this).Index()]; }
|
||||||
template <class LeftV>
|
template <class LeftV>
|
||||||
void ImportData(const LeftV & leftV)
|
void ImportData(const LeftV & leftV)
|
||||||
|
@ -445,6 +446,7 @@ template <class A, class TT> class TexCoordOcf: public TT {
|
||||||
public:
|
public:
|
||||||
typedef A TexCoordType;
|
typedef A TexCoordType;
|
||||||
TexCoordType &T() { assert((*this).Base().TexCoordEnabled); return (*this).Base().TV[(*this).Index()]; }
|
TexCoordType &T() { assert((*this).Base().TexCoordEnabled); return (*this).Base().TV[(*this).Index()]; }
|
||||||
|
const TexCoordType &T() const { return this->cT(); }
|
||||||
const TexCoordType &cT() const { assert((*this).Base().TexCoordEnabled); return (*this).Base().TV[(*this).Index()]; }
|
const TexCoordType &cT() const { assert((*this).Base().TexCoordEnabled); return (*this).Base().TV[(*this).Index()]; }
|
||||||
template < class LeftV>
|
template < class LeftV>
|
||||||
void ImportData(const LeftV & leftV)
|
void ImportData(const LeftV & leftV)
|
||||||
|
|
Loading…
Reference in New Issue