|
41 | 41 | */
|
42 | 42 | -(id)initWithWidth:(int)w height:(int)h;
|
43 | 43 |
|
| 44 | +/** |
| 45 | + * Initializes a CCEffectNode object with width and height in Points and a pixel format( only RGB and RGBA formats are valid ) and no depth-stencil buffer. |
| 46 | + * |
| 47 | + * @param w Width of render target. |
| 48 | + * @param h Height of render target. |
| 49 | + * @param format Pixel format of render target. |
| 50 | + * |
| 51 | + * @return An initialized CCRenderTarget object. |
| 52 | + */ |
| 53 | +-(id)initWithWidth:(int)w height:(int)h pixelFormat:(CCTexturePixelFormat)format; |
| 54 | + |
| 55 | +/** |
| 56 | + * Initializes a CCEffectNode object with width and height in Points and a pixel format( only RGB and RGBA formats are valid ) and depthStencil format |
| 57 | + * |
| 58 | + * @param w Width of render target. |
| 59 | + * @param h Height of render target. |
| 60 | + * @param format Pixel format of render target. |
| 61 | + * @param depthStencilFormat Stencil format of render target. |
| 62 | + * |
| 63 | + * @return An initialized CCRenderTarget object. |
| 64 | + */ |
| 65 | +-(id)initWithWidth:(int)w height:(int)h pixelFormat:(CCTexturePixelFormat)format depthStencilFormat:(GLuint)depthStencilFormat; |
| 66 | + |
| 67 | + |
| 68 | +/// ----------------------------------------------------------------------- |
| 69 | +/// @name Creating a CCEffectNode object |
| 70 | +/// ----------------------------------------------------------------------- |
| 71 | + |
| 72 | +/** |
| 73 | + * Creates a CCEffectNode object with width and height in points, the default color format and no depth-stencil buffer. |
| 74 | + * |
| 75 | + * @param w Width of render target. |
| 76 | + * @param h Height of render target. |
| 77 | + * |
| 78 | + * @return An initialized CCRenderTarget object. |
| 79 | + */ |
| 80 | ++(id)effectNodeWithWidth:(int)w height:(int)h; |
| 81 | + |
| 82 | +/** |
| 83 | + * Creates a CCEffectNode object with width and height in Points and a pixel format( only RGB and RGBA formats are valid ) and no depth-stencil buffer. |
| 84 | + * |
| 85 | + * @param w Width of render target. |
| 86 | + * @param h Height of render target. |
| 87 | + * @param format Pixel format of render target. |
| 88 | + * |
| 89 | + * @return An initialized CCRenderTarget object. |
| 90 | + */ |
| 91 | ++(id)effectNodeWithWidth:(int)w height:(int)h pixelFormat:(CCTexturePixelFormat)format; |
| 92 | + |
| 93 | +/** |
| 94 | + * Creates a CCEffectNode object with width and height in Points and a pixel format( only RGB and RGBA formats are valid ) and depthStencil format |
| 95 | + * |
| 96 | + * @param w Width of render target. |
| 97 | + * @param h Height of render target. |
| 98 | + * @param format Pixel format of render target. |
| 99 | + * @param depthStencilFormat Stencil format of render target. |
| 100 | + * |
| 101 | + * @return An initialized CCRenderTarget object. |
| 102 | + */ |
| 103 | ++(id)effectNodeWithWidth:(int)w height:(int)h pixelFormat:(CCTexturePixelFormat)format depthStencilFormat:(GLuint)depthStencilFormat; |
| 104 | + |
| 105 | + |
44 | 106 | @end
|
0 commit comments