Skip to content

Commit bb26c65

Browse files
author
Thayer J Andrews
committed
CCEffects - API documentation fixes
1 parent 5331f58 commit bb26c65

File tree

7 files changed

+12
-24
lines changed

7 files changed

+12
-24
lines changed

cocos2d/CCEffect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/**
1717
* CCEffect is the foundation of the Cocos2D effects system. Subclasses of CCEffect can be
18-
* used to easil add exciting visual effects such has blur, bloom, reflection, refraction, and
18+
* used to easily add exciting visual effects such has blur, bloom, reflection, refraction, and
1919
* other image processing filters to your applications.
2020
*
2121
*/

cocos2d/CCEffectBloom.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343
/// -----------------------------------------------------------------------
4444

4545
/**
46-
* Initializes a CCEffectBloom object with the following default parameters:
47-
* blurRadius : 2
48-
* intensity : 1
49-
* luminanceThreshold : 0
46+
* Initializes a CCEffectBloom object with the following default values:
47+
* blurRadius = 2, intensity = 1, luminanceThreshold = 0
5048
*
5149
* @return The CCEffectBloom object.
5250
*/
@@ -74,7 +72,7 @@
7472
/// -----------------------------------------------------------------------
7573

7674
/**
77-
* Creates a CCEffectBloom object with the following default parameters:
75+
* Creates a CCEffectBloom object with the specified parameters.
7876
*
7977
* @param blurRadius number of pixels blur will extend to (6 is the maximum, because we are limited by the number
8078
* of varying variables that can be passed to a glsl program).

cocos2d/CCEffectGaussianBlur.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* Initializes a CCEffectGaussianBlur object with the following default parameters:
34-
* blurRadius : 2
34+
* blurRadius = 2
3535
*
3636
* @return The CCEffectGaussianBlur object.
3737
*/

cocos2d/CCEffectGlass.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@
6666

6767
/**
6868
* Initializes a CCEffectGlass object with the following default parameters:
69-
* refraction : 1.0
70-
* fresnelBias : 0.1
71-
* fresnelPower : 2.0
72-
* refractionEnvironment : nil
73-
* reflectionEnvironment : nil
74-
* normalMap : nil
69+
* refraction = 1.0, fresnelBias = 0.1, fresnelPower = 2.0, refractionEnvironment = nil, reflectionEnvironment = nil, normalMap = nil
7570
*
7671
* @return The CCEffectGlass object.
7772
*/

cocos2d/CCEffectReflection.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,15 @@
5353

5454
/**
5555
* Initializes a CCEffectReflection object with the following default parameters:
56-
* fresnelBias : 1.0
57-
* fresnelPower : 0.0
58-
* environment : nil
59-
* normalMap : nil
56+
* fresnelBias = 1.0, fresnelPower = 0.0, environment = nil, normalMap = nil
6057
*
6158
* @return The CCEffectReflection object.
6259
*/
6360
-(id)init;
6461

6562
/**
6663
* Initializes a CCEffectReflection object with the specified environment and normal map and the following default parameters:
67-
* fresnelBias : 1.0
68-
* fresnelPower : 0.0
64+
* fresnelBias = 1.0, fresnelPower = 0.0
6965
*
7066
* @param environment The environment image that will be reflected by the affected node.
7167
* @param normalMap The normal map of the affected node. This can also be specified as a property of the affected sprite.
@@ -93,8 +89,7 @@
9389

9490
/**
9591
* Creates a CCEffectReflection object with the specified environment and normal map and the following default parameters:
96-
* fresnelBias : 1.0
97-
* fresnelPower : 0.0
92+
* fresnelBias = 1.0, fresnelPower = 0.0
9893
*
9994
* @param environment The environment image that will be reflected by the affected node.
10095
* @param normalMap The normal map of the affected node. This can also be specified as a property of the affected sprite.

cocos2d/CCEffectRefraction.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343

4444
/**
4545
* Initializes a CCEffectRefraction object with the following default parameters:
46-
* refraction : 1.0
47-
* environment : nil
48-
* normalMap : nil
46+
* refraction = 1.0, environment = nil, normalMap = nil
4947
*
5048
* @return The CCEffectRefraction object.
5149
*/

cocos2d/CCEffectStack.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
/**
4141
* Initializes an empty effect stack object.
4242
*
43+
* @param effects The array of effects to add to the stack.
44+
*
4345
* @return The CCEffectStack object.
4446
*/
4547
- (id)initWithEffects:(NSArray *)effects;

0 commit comments

Comments
 (0)