Class CCLayerColor

#include <Geode/cocos/layers_scenes_transitions_nodes/CCLayer.h>
classCCLayerColor:publiccocos2d::CCLayerRGBA,publiccocos2d::CCBlendProtocol{ ... }

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
Examples0
Public static methods3
staticcocos2d::CCLayerColor*create()
No description provided
staticcocos2d::CCLayerColor*create(,,)

creates a CCLayer with color, width and height in Points

staticcocos2d::CCLayerColor*create()

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

Public member functions14
virtualvoiddraw()
No description provided
virtualvoidsetContentSize()
No description provided
virtualboolinit()
No description provided
virtualboolinitWithColor(,,)

initializes a CCLayer with color, width and height in Points

virtualboolinitWithColor()

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

voidchangeWidth()

change width in Points

voidchangeHeight()

change height in Points

voidchangeWidthAndHeight(,)

Since v0.8

change width and height in Points

virtualcocos2d::ccBlendFuncgetBlendFunc()

BlendFunction. Conforms to CCBlendProtocol protocol

virtualvoidsetBlendFunc()

BlendFunction. Conforms to CCBlendProtocol protocol

virtualvoidsetColor()

BlendFunction. Conforms to CCBlendProtocol protocol

virtualvoidsetOpacity(
_::GLubyteopacity
)
No description provided
voidaddToVertices(,,)
No description provided
voidsetVertices(,,)
No description provided
Fields0
Protected member functions1
virtualvoidupdateColor()
No description provided
Protected fields3
ccVertex2F[4]m_pSquareVertices
;
No description provided
ccColor4F[4]m_pSquareColors
;
No description provided
;

BlendFunction. Conforms to CCBlendProtocol protocol