How to display different area of one Layer


display three area of a Layer (yellow background, contain one red box)
please tell me how to do this

You can create a ColoredLayer and set the width and height and add it as a child to the yellow ColoredLayer?

i will try your method, thanks

CCCamera.cpp (15.6 KB)
CCCamera.h (11.6 KB)

i just use camera viewport