From Magnus Kessler, "After a closer look at this particular issue, I used some grep and sed magic
to fix all occurrences of "macro's" and "paramter". "
This commit is contained in:
parent
17aaa4db94
commit
e5bc43f04c
@ -25,13 +25,13 @@ public:
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(VirtualProgram,sa)
|
||||
|
||||
// compare each paramter in turn against the rhs.
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_mask)
|
||||
COMPARE_StateAttribute_Parameter(_shaderMap)
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
/** If enabled, activate our program in the GL pipeline,
|
||||
|
@ -43,7 +43,7 @@ class OSG_EXPORT BlendColor : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(BlendColor,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -70,7 +70,7 @@ class OSG_EXPORT BlendEquation : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(BlendEquation,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -86,7 +86,7 @@ class OSG_EXPORT BlendFunc : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(BlendFunc,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -60,7 +60,7 @@ class OSG_EXPORT ClampColor : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(ClampColor,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -63,7 +63,7 @@ class OSG_EXPORT ClipPlane : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(ClipPlane,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -49,7 +49,7 @@ class OSG_EXPORT ColorMask : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(ColorMask,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -37,7 +37,7 @@ class OSG_EXPORT ColorMatrix : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(ColorMatrix,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -45,13 +45,13 @@ class OSG_EXPORT CullFace : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(CullFace,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_mode)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -55,7 +55,7 @@ class OSG_EXPORT Depth : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Depth,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -64,7 +64,7 @@ class OSG_EXPORT Depth : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_zNear)
|
||||
COMPARE_StateAttribute_Parameter(_zFar)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -72,7 +72,7 @@ class OSG_EXPORT Fog : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Fog,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -84,7 +84,7 @@ class OSG_EXPORT Fog : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_fogCoordinateSource)
|
||||
COMPARE_StateAttribute_Parameter(_useRadialFog)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -127,13 +127,13 @@ class OSG_EXPORT FragmentProgram : public StateAttribute
|
||||
virtual int compare(const osg::StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(FragmentProgram,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_fragmentProgram)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -43,13 +43,13 @@ class OSG_EXPORT FrontFace : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(FrontFace,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_mode)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
inline void setMode(Mode mode) { _mode = mode; }
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Hint,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
|
@ -70,7 +70,7 @@ class OSG_EXPORT Light : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Light,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -86,7 +86,7 @@ class OSG_EXPORT Light : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_spot_exponent)
|
||||
COMPARE_StateAttribute_Parameter(_spot_cutoff)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual unsigned int getMember() const { return _lightnum; }
|
||||
|
@ -40,7 +40,7 @@ class OSG_EXPORT LightModel : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(LightModel,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
|
@ -76,7 +76,7 @@ class OSG_EXPORT LogicOp : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// Check for equal types, then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macros below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(LogicOp,sa)
|
||||
|
||||
// Compare each parameter in turn against the rhs.
|
||||
|
@ -65,7 +65,7 @@ class OSG_EXPORT Multisample : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Multisample,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
|
@ -61,7 +61,7 @@ class OSG_EXPORT Point : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_minSize)
|
||||
COMPARE_StateAttribute_Parameter(_maxSize)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -45,16 +45,16 @@ class OSG_EXPORT Scissor : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Scissor,sa)
|
||||
|
||||
// compare each paramter in turn against the rhs.
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_x)
|
||||
COMPARE_StateAttribute_Parameter(_y)
|
||||
COMPARE_StateAttribute_Parameter(_width)
|
||||
COMPARE_StateAttribute_Parameter(_height)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
|
||||
|
@ -63,7 +63,7 @@ class OSG_EXPORT Stencil : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Stencil,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -75,7 +75,7 @@ class OSG_EXPORT Stencil : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_zpass)
|
||||
COMPARE_StateAttribute_Parameter(_writeMask)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
virtual bool getModeUsage(StateAttribute::ModeUsage& usage) const
|
||||
|
@ -44,13 +44,13 @@ class OSG_EXPORT TexEnvFilter : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(TexEnvFilter, sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_lodBias)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void setLodBias( float lodBias ) { _lodBias = lodBias; }
|
||||
|
@ -127,7 +127,7 @@ class OSG_EXPORT VertexProgram : public StateAttribute
|
||||
virtual int compare(const osg::StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(VertexProgram,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
|
@ -52,7 +52,7 @@ class OSG_EXPORT Viewport : public StateAttribute
|
||||
virtual int compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Viewport,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -61,7 +61,7 @@ class OSG_EXPORT Viewport : public StateAttribute
|
||||
COMPARE_StateAttribute_Parameter(_width)
|
||||
COMPARE_StateAttribute_Parameter(_height)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
inline void setViewport(value_type x,value_type y,value_type width,value_type height)
|
||||
|
@ -61,7 +61,7 @@ namespace osgFX
|
||||
inline int Validator::compare(const osg::StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
//used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
//used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Validator,sa)
|
||||
|
||||
// compare parameters
|
||||
|
@ -36,7 +36,7 @@ int PointSprite::compare(const StateAttribute& sa) const
|
||||
|
||||
COMPARE_StateAttribute_Parameter(_coordOriginMode)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
|
||||
|
@ -61,7 +61,7 @@ PolygonStipple::~PolygonStipple()
|
||||
int PolygonStipple::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(PolygonStipple,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -71,7 +71,7 @@ int PolygonStipple::compare(const StateAttribute& sa) const
|
||||
else if (_mask[i]>rhs._mask[i]) return 1;
|
||||
}
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void PolygonStipple::setMask(const GLubyte* givenMask)
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2008 Zebra Imaging
|
||||
*
|
||||
* This application is open source and may be redistributed and/or modified
|
||||
* freely and without restriction, both in commericial and non commericial
|
||||
* freely and without restriction, both in commercial and non commercial
|
||||
* applications, as long as this copyright notice is maintained.
|
||||
*
|
||||
* This application is distributed in the hope that it will be useful,
|
||||
@ -141,7 +141,7 @@ Program::~Program()
|
||||
int Program::compare(const osg::StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Program,sa)
|
||||
|
||||
if( _shaderList.size() < rhs._shaderList.size() ) return -1;
|
||||
@ -169,7 +169,7 @@ int Program::compare(const osg::StateAttribute& sa) const
|
||||
if (result!=0) return result;
|
||||
}
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
|
||||
|
@ -61,7 +61,7 @@ StencilTwoSided::~StencilTwoSided()
|
||||
int StencilTwoSided::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(StencilTwoSided,sa)
|
||||
|
||||
// compare each parameter in turn against the rhs.
|
||||
@ -81,7 +81,7 @@ int StencilTwoSided::compare(const StateAttribute& sa) const
|
||||
COMPARE_StateAttribute_Parameter(_zpass[BACK])
|
||||
COMPARE_StateAttribute_Parameter(_writeMask[BACK])
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void StencilTwoSided::apply(State& state) const
|
||||
|
@ -48,7 +48,7 @@ Texture1D::~Texture1D()
|
||||
int Texture1D::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Texture1D,sa)
|
||||
|
||||
if (_image!=rhs._image) // smart pointer comparison.
|
||||
@ -89,7 +89,7 @@ int Texture1D::compare(const StateAttribute& sa) const
|
||||
COMPARE_StateAttribute_Parameter(_textureWidth)
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void Texture1D::setImage(Image* image)
|
||||
|
@ -52,7 +52,7 @@ Texture2D::~Texture2D()
|
||||
int Texture2D::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Texture2D,sa)
|
||||
|
||||
if (_image!=rhs._image) // smart pointer comparison.
|
||||
@ -102,7 +102,7 @@ int Texture2D::compare(const StateAttribute& sa) const
|
||||
#endif
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void Texture2D::setImage(Image* image)
|
||||
|
@ -51,7 +51,7 @@ Texture2DArray::~Texture2DArray()
|
||||
int Texture2DArray::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Texture2DArray,sa)
|
||||
|
||||
bool noImages = true;
|
||||
@ -97,7 +97,7 @@ int Texture2DArray::compare(const StateAttribute& sa) const
|
||||
COMPARE_StateAttribute_Parameter(_textureDepth)
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void Texture2DArray::setImage(unsigned int layer, Image* image)
|
||||
|
@ -53,7 +53,7 @@ Texture2DMultisample::~Texture2DMultisample()
|
||||
int Texture2DMultisample::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Texture2DMultisample,sa)
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@ int Texture2DMultisample::compare(const StateAttribute& sa) const
|
||||
}
|
||||
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void Texture2DMultisample::apply(State& state) const
|
||||
|
@ -58,7 +58,7 @@ Texture3D::~Texture3D()
|
||||
int Texture3D::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(Texture3D,sa)
|
||||
|
||||
if (_image!=rhs._image) // smart pointer comparison.
|
||||
@ -101,7 +101,7 @@ int Texture3D::compare(const StateAttribute& sa) const
|
||||
COMPARE_StateAttribute_Parameter(_textureDepth)
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void Texture3D::setImage(Image* image)
|
||||
|
@ -73,7 +73,7 @@ TextureCubeMap::~TextureCubeMap()
|
||||
int TextureCubeMap::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Paramter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(TextureCubeMap,sa)
|
||||
|
||||
bool noImages = true;
|
||||
@ -117,12 +117,12 @@ int TextureCubeMap::compare(const StateAttribute& sa) const
|
||||
int result = compareTexture(rhs);
|
||||
if (result!=0) return result;
|
||||
|
||||
// compare each paramter in turn against the rhs.
|
||||
// compare each parameter in turn against the rhs.
|
||||
COMPARE_StateAttribute_Parameter(_textureWidth)
|
||||
COMPARE_StateAttribute_Parameter(_textureHeight)
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
|
||||
|
@ -76,7 +76,7 @@ TextureRectangle::~TextureRectangle()
|
||||
int TextureRectangle::compare(const StateAttribute& sa) const
|
||||
{
|
||||
// check the types are equal and then create the rhs variable
|
||||
// used by the COMPARE_StateAttribute_Parameter macro's below.
|
||||
// used by the COMPARE_StateAttribute_Parameter macros below.
|
||||
COMPARE_StateAttribute_Types(TextureRectangle,sa)
|
||||
|
||||
if (_image!=rhs._image) // smart pointer comparison.
|
||||
@ -118,7 +118,7 @@ int TextureRectangle::compare(const StateAttribute& sa) const
|
||||
COMPARE_StateAttribute_Parameter(_textureHeight)
|
||||
COMPARE_StateAttribute_Parameter(_subloadCallback)
|
||||
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
return 0; // passed all the above comparison macros, must be equal.
|
||||
}
|
||||
|
||||
void TextureRectangle::setImage(Image* image)
|
||||
|
@ -593,7 +593,7 @@ VisualInfo *VisualChooser::choose( Display *dpy, int screen, bool strict_adheren
|
||||
{
|
||||
if (*k == WGL_SWAP_METHOD_ARB)
|
||||
{
|
||||
// attribute come in sequential attribute,paramter pairs
|
||||
// attribute come in sequential attribute,parameter pairs
|
||||
// as WGL specifications so we need to delete two entries
|
||||
attribs.erase(k,k+2);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user