Skip to content

Commit 30dfef8

Browse files
author
Thayer J Andrews
committed
CCEffectPixellate - API documentation
1 parent dcdd4e1 commit 30dfef8

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

cocos2d/CCEffectPixellate.h

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,55 @@
88

99
#import "CCEffect.h"
1010

11+
/**
12+
* CCEffectPixellate adjusts the size of the pixels of the sprite or effect node it is attached to.
13+
*/
14+
1115
@interface CCEffectPixellate : CCEffect
1216

17+
/// -----------------------------------------------------------------------
18+
/// @name Accessing Effect Attributes
19+
/// -----------------------------------------------------------------------
20+
21+
/** The resulting size of the pixel blocks of the affected node. This value is specified in points
22+
* and is in the range [1..inf]. A value of 1 results in no change to the affected pixels
23+
* and larger values result in larger output pixel blocks.
24+
*/
1325
@property (nonatomic) float blockSize;
1426

27+
28+
/// -----------------------------------------------------------------------
29+
/// @name Initializing a CCEffectPixellate object
30+
/// -----------------------------------------------------------------------
31+
32+
/**
33+
* Initializes a CCEffectPixellate object with a block size of 1.
34+
*
35+
* @return The CCEffectPixellate object.
36+
*/
1537
-(id)init;
38+
39+
/**
40+
* Initializes a CCEffectPixellate object with the supplied parameters.
41+
*
42+
* @param blockSize The desired block size.
43+
*
44+
* @return The CCEffectPixellate object.
45+
*/
1646
-(id)initWithBlockSize:(float)blockSize;
47+
48+
49+
/// -----------------------------------------------------------------------
50+
/// @name Initializing a CCEffectPixellate object
51+
/// -----------------------------------------------------------------------
52+
53+
/**
54+
* Creates a CCEffectPixellate object with the supplied parameters.
55+
*
56+
* @param blockSize The desired block size.
57+
*
58+
* @return The CCEffectPixellate object.
59+
*/
1760
+(id)effectWithBlockSize:(float)blockSize;
1861

1962
@end

0 commit comments

Comments
 (0)