11 #ifndef __GT_DAConstant__
12 #define __GT_DAConstant__
50 : myOffset(src.myOffset),
57 const char *
className()
const override {
return "GT_DAConstant"; }
62 {
return mySize *
itemSize(myOffset); }
GT_Size itemSize(GT_Offset offset) const override
const char * className() const override
Extend a single element from a source array to emulate a larger array.
GT_Size getTotalArrayEntries() const override
GT_DAConstant(const GT_DAConstant &src)
Copy constructor.
void init(const GT_DataArrayHandle &data, GT_Offset offset, GT_Size size)
Initialize with given data.
GT_DAConstant(const GT_DataArrayHandle &data, GT_Offset offset, GT_Size size)
Useful constructor.
GLfloat GLfloat GLfloat GLfloat h
Base class for a data array which references another data array.
#define GT_IMPL_INHERIT_ARRAY(MAP_INDEX, SIZE)
GT_Size itemSize(GT_Offset) const override
Return the number of elements in the array for the given item.
void init(const GT_DataArrayHandle &data)
GT_DAConstant()
Default constructor.