Cocos2d-X-4.0学习
001:Director类介绍
/**
@brief Class that creates and handles the main Window and manages how
and when to execute the Scenes.
The Director is also responsible for:
- initializing the OpenGL context
- setting the OpenGL buffer depth (default one is 0-bit)
- setting the projection (default one is 3D)
Since the Director is a singleton, the standard way to use it is by calling:
_ Director::getInstance()->methodName();
*/
@简介:创建和处理主Window并管理如何以及何时执行场景的类。
Director 还负责:
-初始化OpenGL上下文
-设置OpenGL缓冲区深度(默认值是0位)
-设置投影(默认为3D)
因为导演是一个单独的,使用标准的方式,它是通过调用:
_ Director ::