cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCLayerColor Interface Reference

#include <CCLayer.h>

+ Inheritance diagram for CCLayerColor:
+ Collaboration diagram for CCLayerColor:

List of all members.

Public Member Functions

id initWithColor:width:height: (ccColor4B color,[width] GLfloat w,[height] GLfloat h)
id initWithColor: (ccColor4B color)
void changeWidth: (GLfloat w)
void changeHeight: (GLfloat h)
void changeWidth:height: (GLfloat w,[height] GLfloat h)

Static Public Member Functions

id layerWithColor:width:height: (ccColor4B color,[width] GLfloat w,[height] GLfloat h)
id layerWithColor: (ccColor4B color)

Protected Attributes

ccColor3B color_
ccVertex2F squareVertices_ [4]
ccColor4B squareColors_ [4]
ccBlendFunc blendFunc_

Properties

GLubyte opacity_
GLubyte opacity
ccColor3B color
ccBlendFunc blendFunc

Detailed Description

CCLayerColor is a subclass of CCLayer that implements the CCRGBAProtocol protocol.

All features from CCLayer are valid, plus the following new features:

  • opacity
  • RGB colors

Member Function Documentation

void CCLayerColor::changeHeight: ( GLfloat  h) [virtual]

change height in Points

void CCLayerColor::changeWidth: ( GLfloat  w) [virtual]

change width in Points

void CCLayerColor::changeWidth:height: ( GLfloat  w,
[height] GLfloat  h 
) [virtual]

change width and height in Points

Since:
v0.8
id CCLayerColor::initWithColor: ( ccColor4B  color) [virtual]

initializes a CCLayer with color. Width and height are the window size.

id CCLayerColor::initWithColor:width:height: ( ccColor4B  color,
[width] GLfloat  w,
[height] GLfloat  h 
) [virtual]

initializes a CCLayer with color, width and height in Points

id CCLayerColor::layerWithColor: ( ccColor4B  color) [static, virtual]

creates a CCLayer with color. Width and height are the window size.

id CCLayerColor::layerWithColor:width:height: ( ccColor4B  color,
[width] GLfloat  w,
[height] GLfloat  h 
) [static, virtual]

creates a CCLayer with color, width and height in Points


Property Documentation

ccBlendFunc CCLayerColor::blendFunc [read, write, assign]

BlendFunction. Conforms to CCBlendProtocol protocol

ccColor3B CCLayerColor::color [read, assign]

Opacity: conforms to CCRGBAProtocol protocol

GLubyte CCLayerColor::opacity [read, assign]

Opacity: conforms to CCRGBAProtocol protocol


The documentation for this interface was generated from the following file: