Director类与Caches
来源:互联网 发布:液压系统绘图软件 编辑:程序博客网 时间:2024/06/01 16:31
在cocos2d-x example beginner's guide Ch2,P19中(翻译凑合看)
Then comes the all-knowing CCDirector and all-encompassing cache objects. CCDirector
manages scenes and knows all about your application. You will make calls to it to get to that
information, and to change some of it: things such as screen size, frame rate, scale factor,
and so on.
Director 和 Caches
接下来,是大名鼎鼎的 CCDirector 和包罗万象的 cache objects。CCDirector类调度场景,并知晓游戏的一草一木。
调用CCDirector中的方法,可以获得和改变许多属性,比如:屏幕尺寸,帧率,比例因子,等等。
The caches are collector objects. The most important ones are CCTextureCache,CCSpriteFrameCache, and CCAnimationCache. These are responsible for storing key
information regarding those two important rectangles I talked about. In fact, every sort of
data that is used repeatedly in Cocos2d-x will be kept in some sort of cache list.
Both CCDirector and all cache objects are singletons: a special sort of class that is
instantiated only once and this one instance can usually be accessed by any other object.
缓存是一个对象集合,最主要 的有:CCTextureCache(纹理缓存),CCSpriteFrameCache(精灵帧缓存)和CCAnimationCache(动画缓存)。
待续...
- Director类与Caches
- DIRECTOR 与数据库
- Director类的使用
- Director
- Director
- PostgreSQL的查询执行时间与caches
- Director类源代码不完全分析
- Director 运行效率调试与优化
- Android Studio 清理缓存clean project与invalidate caches
- 第二节:导演类Director介绍
- NHibernate caches
- Drop Caches
- Drop Caches
- Drop Caches
- cocos2d-X 导演类(Director.h)API
- cocos2dx3.2学习笔记之Director(导演类)
- cocos2d-x 3.2 以及2.2.3 Director类分析
- Cocos2d-X3.0 刨根问底(三)----- Director类源码分析
- windows下安装ruby on rails 环境搭建·
- LeetCode 之 Palindrome Number
- 在label中设置上下标
- App在闲置一段时间(也即用户无动作)执行指定动作
- Android使用缓存优化ListView
- Director类与Caches
- java中string与byte[]的转换
- OpenCart之Ajax关联选项(Related Options)模块插件
- 什么时候要加上 android.intent.category.DEFAULT?
- 软件测试用例设计实用经验之谈
- Android(Java):线程
- MVC 单独做Controller的映射
- python:解析html(HTMLParser、SGMLParser)
- [Unity3d]鼠标旋转缩放拖动模型