issue #7, change function name in CCProtocols.h, use set* and get*

This commit is contained in:
Walzer 2010-07-19 10:00:13 +00:00
parent e0b4307d30
commit 405d445f36
1 changed files with 6 additions and 6 deletions

View File

@ -41,10 +41,10 @@ class CCRGBAProtocol
/** returns the color /** returns the color
@since v0.8 @since v0.8
*/ */
virtual ccColor3B color(void) = 0; virtual ccColor3B getColor(void) = 0;
// returns the opacity // returns the opacity
virtual GLubyte opacity(void) = 0; virtual GLubyte getOpacity(void) = 0;
/** sets the opacity. /** sets the opacity.
@warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed. @warning If the the texture has premultiplied alpha then, the R, G and B channels will be modifed.
@ -60,12 +60,12 @@ class CCRGBAProtocol
Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO Textures with premultiplied alpha will have this property by default on YES. Otherwise the default value is NO
@since v0.8 @since v0.8
*/ */
virtual void setOpacityModifyRGB(bool bValue) {} virtual void setIsOpacityModifyRGB(bool bValue) {}
/** returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity); /** returns whether or not the opacity will be applied using glColor(R,G,B,opacity) or glColor(opacity, opacity, opacity, opacity);
@since v0.8 @since v0.8
*/ */
virtual bool doesOpacityModifyRGB(void) { return false;} virtual bool getIsOpacityModifyRGB(void) { return false;}
}; };
/** /**
@ -78,7 +78,7 @@ class CCBlendProtocol
virtual void setBlendFunc(ccBlendFunc blendFunc) = 0; virtual void setBlendFunc(ccBlendFunc blendFunc) = 0;
// returns the blending function used for the texture // returns the blending function used for the texture
virtual ccBlendFunc blendFunc(void); virtual ccBlendFunc getBlendFunc(void);
}; };
/** CCNode objects that uses a Texture2D to render the images. /** CCNode objects that uses a Texture2D to render the images.
@ -93,7 +93,7 @@ class CCBlendProtocol
class CCTextureProtocol : public CCBlendProtocol class CCTextureProtocol : public CCBlendProtocol
{ {
// returns the used texture // returns the used texture
virtual CCTexture2D* texture(void) = 0; virtual CCTexture2D* getTexture(void) = 0;
// sets a new texture. it will be retained // sets a new texture. it will be retained
virtual void setTexture(CCTexture2D *texture) {} virtual void setTexture(CCTexture2D *texture) {}