24 UT_SMALLOBJECT_CLEANPAGES_OFF, 250,
25 UT_SMALLOBJECT_THREADSAFE_ON>
38 int64 getMemoryUsage(
bool inclusive)
const;
47 {
return (strcmp(eq.
getName(), getName()) == 0); }
50 {
return (strcmp(eq.
getName(), getName()) != 0); }
53 bool isCompatible(
const TIL_Plane &)
const;
57 const char *
getName()
const {
return myName; }
58 void setName(
const char *name);
60 bool isAlphaPlane()
const;
61 bool isColorPlane()
const;
62 bool isPointPlane()
const;
63 bool isNormalPlane()
const;
64 bool isDepthPlane()
const;
65 bool isGeometricPlane()
const;
74 { myTypeInfo = (
unsigned char)typeinfo; }
79 void setArraySize(
int n);
83 void setVectorSize(
int n);
87 {
return (i>=0 && i<myVectorSize) ? mySubName[i] : 0; }
89 void setSubName(
const char *subname,
int i);
90 int hasElement(
const char *planename);
98 {
return (i>=0 && i<myVectorSize) ? myPlaneMask[i]:0; }
100 void setPlaneMask(
int enable,
int i);
101 void copyPlaneMask(
const TIL_Plane &plane);
103 {
for(
int i=myVectorSize; i--;) myPlaneMask[i]=(
char)
enable; }
105 bool isScoped()
const;
106 bool isPartiallyScoped()
const;
107 bool scopeMatches(
const TIL_Plane &plane)
const;
110 int getArrayMask(
int i)
const;
111 void setArrayMask(
int start,
int end,
int step);
114 bool isConstantPlane()
const;
115 bool isConstantComponent(
int i)
const;
116 bool isAnyComponentConstant()
const;
117 void setConstantFlag(
int i,
bool enable);
120 int usesBlackWhitePoints()
const;
122 unsigned int &
w)
const
123 { b = myBlackPoint; w = myWhitePoint; }
124 void getBlackWhitePoints(
float &
b,
float &
w)
const;
125 void setBlackWhitePoints(
unsigned int b,
unsigned int w);
127 void debugPrint(std::ostream &os)
const;
128 int64 getMemSize()
const;
130 unsigned getHash()
const;
134 unsigned short myArraySize;
135 unsigned char myFormat;
136 unsigned char myTypeInfo;
137 unsigned char myVectorSize;
143 int myArrayMaskStart;
151 unsigned int myBlackPoint;
152 unsigned int myWhitePoint;
153 unsigned int myNameAlloc :1,
GLboolean GLboolean GLboolean b
int operator==(const TIL_Plane &eq) const
GLuint const GLchar * name
int getPlaneMask(int i) const
void getBlackWhitePoints(unsigned int &b, unsigned int &w) const
GLubyte GLubyte GLubyte GLubyte w
int operator!=(const TIL_Plane &eq) const
const char * getName() const
void setTypeInfo(TIL_TypeInfo typeinfo)
const char * getSubName(int i) const
#define PLANE_MAX_VECTOR_SIZE
TIL_DataFormat getFormat() const
TIL_TypeInfo getTypeInfo() const
GLint GLint GLsizei GLint GLenum format
int getVectorSize() const
void setScoped(int enable)