- 博客(22)
- 资源 (5)
- 收藏
- 关注
原创 CCSpriteFrameCache解析
代码:/** @class SpriteFrameCache * @brief Singleton that handles the loading of the sprite frames. It saves in a cache the sprite frames. @since v0.9 @js cc.spriteFrameCache */ // 精灵帧缓存区 // 加载精
2015-09-20 21:36:12 1603
原创 CCNodeGird解析
代码:/** * @brief Base class for Grid Node. *///网格节点的基类class CC_DLL NodeGrid : public Node{public: /** Create a Grid Node. * * @return An autorelease Grid Node. */ // 创建一个网格
2015-09-20 21:35:07 955
原创 CCSpriteFrame解析
代码:/** @class SpriteFrame * @brief A SpriteFrame has: - texture: A Texture2D that will be used by the Sprite - rectangle: A rectangle of the texture精灵帧纹理:精灵使用的2D纹理矩形:纹理的矩形 You can modi
2015-09-20 21:33:31 1327
原创 CCRenderTexture解析
代码:/** * @brief RenderTexture is a generic rendering target. To render things into it, * simply construct a render target, call begin on it, call visit on any cocos * scenes or objects to render
2015-09-20 21:32:24 540
原创 CCRenderTexture解析
代码:/****************************************************************************Copyright (c) 2009 Jason BoothCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2013-2014 Chukong Technologie
2015-09-17 23:32:30 877
原创 CCScene解析
代码:/****************************************************************************Copyright (c) 2008-2010 Ricardo QuesadaCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2011 Zynga Inc.Copy
2015-09-17 23:24:06 587
原创 CCSprite解析
代码:/****************************************************************************Copyright (c) 2008-2010 Ricardo QuesadaCopyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2011 Zynga Inc.Copy
2015-09-17 23:19:14 1247
原创 CCNode解析
代码:/** @class Node* @brief Node is the base element of the Scene Graph. Elements of the Scene Graph must be Node objects or subclasses of it. The most common Node objects are: Scene, Layer, Sprite
2015-09-10 01:15:53 1660
原创 CCMotionStreak解析
代码:/** @class MotionStreak. * @brief Creates a trailing path. */ // 移动纹理class CC_DLL MotionStreak : public Node, public TextureProtocol{public: /** Creates and initializes a motion streak
2015-09-07 22:31:01 604
原创 CCMenuItem解析
代码:/** @brief MenuItem base class. * 菜单项目基类 * Subclass MenuItem (or any subclass) to create your custom MenuItem objects. */class CC_DLL MenuItem : public Node{public: /** Creates a Menu
2015-09-07 22:20:33 415
原创 CCMenu解析
代码:/** @brief A Menu for touch handling.* * Features and Limitation:* - You can add MenuItem objects in runtime using addChild.* - But the only accepted children are MenuItem objects.*/// 处
2015-09-07 21:59:10 300
原创 CCLight解析
代码:enum class LightType// 光线类型{ DIRECTIONAL = 0, POINT = 1, SPOT = 2, AMBIENT = 3,};enum class LightFlag//光线标识{ LIGHT0 = 1, LIGHT1 = 1 << 1, LIGHT2 = 1 << 2, LIG
2015-09-07 21:45:40 761
原创 GoogleTest的使用01
1.下载源码:https://github.com/google/googletest点击右下角的DownloadZIP,下载后解压如下:2.编译GoogleTest是支持windows平台的,就是需要编译下,我用的是最新版的GoogleTest,用visual studio 2013编译。打开E:\googletest-master\googletes
2015-09-07 21:26:57 588
原创 CCLayer解析
代码:// // Layer///** @class Layer * @brief Layer is a subclass of Node that implements the TouchEventsDelegate protocol.Layer是Node的一个子类实现了TouchEventsDelegate协议All features from Node are valid
2015-09-07 00:58:33 856
原创 Python学习01
从“HelloWorld”开始:打开IDLE,输入:print("HelloWorld")相对于其他编程语言来说,python的helloworld要简单的多,一行代码就够了,几乎不会出错,就算出错了,也很容易差错。1.print:输出一行字符串,3.x以后的版本print输出必须添加'()',参数可以是字符串,也可以是数。这里对字符串的限制也没那么多,用单引号和双引号都是OK的。
2015-09-06 00:17:07 273
原创 CCLabelBMFont解析
CCLabelBMFont代码:/** @brief LabelBMFont is a subclass of SpriteBatchNode.LabelBMFont是SpriteBatchNode的子类Features:- Treats each character like a Sprite. This means that each individual charact
2015-09-06 00:14:16 639
原创 CCLabelTTF解析
代码:/** @brief LabelTTF is a subclass of TextureNode that knows how to render text labels *LabelTTF是一个知道如何绘制文本标签纹理节点的子类 * All features from TextureNode are valid in LabelTTF *所有纹理节点的特性在LabelTTF中都是
2015-09-06 00:07:07 1124
原创 CCLabelAtlas,CCLabelTextFormatter解析
代码:/** * @class LabelAtlas * @brief LabelAtlas is a subclass of AtlasNode. *LabelAtlas是一个AtlasNode的子类 * It can be as a replacement of Label since it is MUCH faster. * 他可以代替Label,因为他更快 * Label
2015-09-05 23:54:38 854
原创 CCLabel解析
代码:/** * @addtogroup _2d * @{ *//** * @brief Possible GlyphCollection used by Label. * * Specify a collections of characters to be load when Label created. * Consider using DYNAMIC. */enu
2015-09-05 23:46:36 2402
原创 CCFontAtlas,CCGrid,CCGLBufferedNode,CCGrabber解析
CCFontAtlas:代码:struct FontLetterDefinition //字体字母定义{ unsigned short letteCharUTF16;//utf-16编码 float U; float V; float width;//宽 float height;//高 float offsetX;//水平偏移量
2015-09-02 00:35:23 1324
原创 CCFontAtlasCache,CCFontCharMap,CCFontFNT,CCFontFreeType解析
CCFontAtlasCache:代码:class FontAtlas;// 字体图集缓存class CC_DLL FontAtlasCache{ public:// 得到字体图集 static FontAtlas * getFontAtlasTTF(const TTFConfig & config); static FontAtlas * getFon
2015-09-02 00:23:53 1475
原创 Natification:Cocos中的观察者模式
cocos中的观察者:NotificationCenter:通知中心NotificationObserver:通知的观察者代码:class CC_DLL __NotificationCenter : public Ref{ friend class ScriptHandlerMgr;public: /// 构造函数 __NotificationCenter()
2015-09-01 23:56:39 662
android程序间数据的共享(ContentProvider和ContentResolver的使用)
2015-12-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人