Skip to content

Commit af6d966

Browse files
author
Thayer J Andrews
committed
CCEffectGaussianBlur - API documentation
1 parent 3a4b322 commit af6d966

File tree

1 file changed

+44
-4
lines changed

1 file changed

+44
-4
lines changed

cocos2d/CCEffectGaussianBlur.h

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,58 @@
88

99
#import "CCEffect.h"
1010

11+
12+
/**
13+
* CCEffectGaussianBlur performs blur operation on the pixels of the attached node.
14+
*/
15+
1116
@interface CCEffectGaussianBlur : CCEffect
1217

13-
// blurRadius number of pixels blur will extend to (6 is the maximum, because we are limited by the number
14-
// of varying variables that can be passed to a glsl program). TODO: create a slower bloom shader, that does not have this restriction.
18+
19+
/// -----------------------------------------------------------------------
20+
/// @name Accessing Effect Attributes
21+
/// -----------------------------------------------------------------------
22+
23+
/** The size of the blur. This value is in the range [0..6].
24+
*/
1525
@property (nonatomic) NSUInteger blurRadius;
1626

27+
28+
/// -----------------------------------------------------------------------
29+
/// @name Initializing a CCEffectGaussianBlur object
30+
/// -----------------------------------------------------------------------
31+
1732
/**
18-
* @param blurRadius number of pixels blur will extend to (6 is the maximum, because we are limited by the number
19-
* of varying variables that can be passed to a glsl program). TODO: create a slower bloom shader, that does not have this restriction.
33+
* Initializes a CCEffectGaussianBlur object with the following default parameters:
34+
* blurRadius : 2
35+
*
36+
* @return The CCEffectGaussianBlur object.
2037
*/
2138
-(id)init;
39+
40+
/**
41+
* Initializes a CCEffectGaussianBlur object with the specified parameters.
42+
*
43+
* @param blurRadius number of pixels blur will extend to (6 is the maximum, because we are limited by the number
44+
* of varying variables that can be passed to a glsl program).
45+
*
46+
* @return The CCEffectGaussianBlur object.
47+
*/
2248
-(id)initWithPixelBlurRadius:(NSUInteger)blurRadius;
49+
50+
51+
/// -----------------------------------------------------------------------
52+
/// @name Creating a CCEffectGaussianBlur object
53+
/// -----------------------------------------------------------------------
54+
55+
/**
56+
* Creates a CCEffectGaussianBlur object with the specified parameters.
57+
*
58+
* @param blurRadius number of pixels blur will extend to (6 is the maximum, because we are limited by the number
59+
* of varying variables that can be passed to a glsl program).
60+
*
61+
* @return The CCEffectGaussianBlur object.
62+
*/
2363
+(id)effectWithPixelBlurRadius:(NSUInteger)blurRadius;
2464

2565
@end

0 commit comments

Comments
 (0)