|
8 | 8 |
|
9 | 9 | #import "CCEffect.h"
|
10 | 10 |
|
| 11 | +/** |
| 12 | + * CCEffectPixellate adjusts the size of the pixels of the sprite or effect node it is attached to. |
| 13 | + */ |
| 14 | + |
11 | 15 | @interface CCEffectPixellate : CCEffect
|
12 | 16 |
|
| 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 | + */ |
13 | 25 | @property (nonatomic) float blockSize;
|
14 | 26 |
|
| 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 | + */ |
15 | 37 | -(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 | + */ |
16 | 46 | -(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 | + */ |
17 | 60 | +(id)effectWithBlockSize:(float)blockSize;
|
18 | 61 |
|
19 | 62 | @end
|
0 commit comments