...

来源:互联网 发布:android 打开淘宝 编辑:程序博客网 时间:2024/06/05 16:45


Android开发


李华明Himi


智慧 + 毅力 = 无所不能

专注,努力,勤奋

红孩儿的游戏编程之路

runaying的专栏

207+8

5、26 :  5

5、27:9       //   CCImageCommon_cpp CCImage CCTexture2D CCGrabber  CCGrid(CCGridBase CCGrid3D CCTiledGrid3D CCGridBase) + 4action

网格动画深入分析

5、28: 3          CCComponent    CCComponentContainer(接口容器)  CCNode(成员ContentSize Camera Grid Child Par UserData Scheduler ActionManager ComponentContainer+颜色节点)

5、29    0   // ccnode  CCScheduler(调度器 两种回调1、update回调(通过object的update函数实现所以每次调用) 2、一般回调(通过timer timer是可以设置fSeconds的可变调用间隔)) 

5、30 22  //

CCGLBufferedNode  

CCPlatformConfig  ccConfig(设置一些底层接口状态:是否支持动作叠加 设置fps更新间隔和位置 是否画边框等。。)

CCPlatformMacros(平台宏 CREATE_FUNC USING_NS_CC CC_PROPERTY_READONLY等属性 CC_SAFE_DELETE)

CCAutoreleasePool 

 CCObject(m_uReference(被引用次数) m_uAutoReleaseCount(加入释放池次数) release retain acceptVisitor)

CCString(内部std:string 实现。 成员:std::string变量 operator= intValue floatValue compare createWithFormat)
 CCSet(内部std::set实现 成员std::set<CCObject *> *m_pSet count addObject containsObject begin anyObject) 

  data_support/utlist(关于编译器的一些宏宏设置)  

 data_support/ccCArray(c 数组) 

CCArray(c+数组)

  CCDirector(导演 ) 

  CCDataVisitor(数据访问器 子类:CCPrettyPrinter _indentLevel-用于数组; string _indentStr; _result-指针字符串) 
CCTexture2D(CCTexture2D类可以方便的从图片,文本或raw数据文件中创建OpenGL所用贴图 initWithData drawAtPoint initWithString)  
 CCGeometry(几何学。CCPoint两向量夹角、投影向量、以特定轴+角度旋转。CCSize-大小概念。CCRect-成员是前2.函数:是否包含一个ccp,是否和另一rect相交。宏xMake) 

 ccTypes(各种类型--ccColor3B ccVertex2F ccQuad2 ccQuad3 ccBlendFunc ccFontDefinition) 

 CCProtocols(各种协议CCRGBAProtocol:函数-透明度是否改变RGB、颜色是否下传。混合协议+CCTextureProtocol+字体协议+导演协议 )

 TransformUtils(变换全局控制) 

 CCZone(...) 

176

6、18   4

          CCScrollView/CCScrollView(滚动条setContainer setContentSize setContentOffsetInDuration setDelegate)         

          CCScrollView/CCSorting          

         CCScrollView/CCTableViewCell(TableViewCell)         

         CCScrollView/CCTableView(CCTableViewDelegate CCTableViewDataSource CCTableView-滑动列表-游戏中大量使用 很重要的一个类)         

6、25  51

         CCTextureAtlas(Atlas地图集图册-表示将小纹理组成一张纹理集以达到批量渲染目的 方法->TextureAtlas维护了一个ccV3F_C4B_T2F_Quad数组)         
          CCTextureCache(加载纹理到缓存)         

         CCAtlasNode(CCAtlasNode封装了一个CCTextureAtlas的变量,CCTextureAtlas初始化图片文件的时候会把图片加载到缓存(CCTextureCache)中:)         

         CCAffineTransform(仿射变换 :点乘 差乘 单位化。。。)         

         CCDictionary(封装了哈希表.可以加入两种元素:键为整型或字符串值为ccobject.CCDICT_FOREACH objectForKey allKeysForObject setObj)         

         CCNS(函数库CCPointFromString CCRectFromString CCSizeFromString 参数是字符串"{x,y}"、{{x,y},{w, h}}、"{w, h}")         

         CCDrawingPrimitives(使用gl原始方法 绘制Points Line Rect Poly Circle Bezier CatmullRom CardinalSpline。。。。)         

         CCDrawNode(是一个节点有drawDot drawSegment drawPolygon方法 可以类绘制点 线段 多边形--与drawing primitives不同 采用批渲染)         
         CCKeypadDelegate(Delegate 授权; 委托 ; 派…代表 ;键盘事件委托,就是系统捕捉到键盘事件后交由它或者它的子类处理 )         
         CCKeypadDispatcher(键盘消息分发器 该类主要负责键盘消息的分发,分发到已经注册过的层、精灵等对象(注册了CCKeypadDelegate委托)。)         

         CCTouchDelegateProtocol(CCTouchDelegate触摸事件委托 两子类:1CCTargetedTouchDelegate,2CCStandardTouchDelegate)         
         CCAccelerometerDelegate(重力感应消息委托)         
         CCLayer(集中了触摸键盘重力消息的委托处理 子类:CCLayerRGBA、Color、Gradient-渐变颜色层 CCLayerMultiplex-内部有一个层数组可以方便的切换显示层)         


         CCScene(是一个ccnode 一个抽象概念 除了 锚点 =(0.5f, 0.5f) ContentSize = WinSize 和ccnode没有不同 )         

         CCTransition(scene切换时会用到 产生特效 渐隐 碎片 翻页 钟摆 涡轮 渐远 左移 百叶窗。。。)         

         CCTransitionPageTurn(场景切换特效之 ---翻页)         

         CCTransitionProgress(场景切换特效 以下子类:CCTransitionProgressRadialCW、Horizontal 、Vertical 、InOut、 OutIn)         
         CCMotionStreak(ccnode子类 可实现拖尾效果 需要设置--- 消隐动画时长,拖尾条带相邻顶点间的最小距离,拖尾条带的宽度,顶点颜色,纹理)         

         CCClippingNode(Clip修剪 可以实现新手引导遮罩、滚动字幕。。渲染child时仅渲染模板透明度值大于透明度阀值的像素点.默认透明度阀值 =1)         

         CCProgressTimer(进度条)         

         CCRenderTexture(动态创建纹理类 ---通过OpenGL方法 可以实现截屏功能)         

         CCParticleSystem         

         CCParticleSystemQuad         

         CCParticleExamples         

         CCParticleBatchNode         

         CCCommon(CCLog CCLuaLog CCMessageBox)         

         CCApplicationProtocol(以下纯虚:应用开始函数applicationDidFinishLauncing-负责初始化导演场景、应用进入后台、前台函数、帧数设置函数、得到当前语言、平台         

         CCDevice(设备类 。static int getDPI(); //得到设备分辨率 DPI表示分辨率,指每英寸长度上的点数)         

         CCEGLViewProtocol(窗口协议 各个平台会继承这个类重写一个子类来具体实现窗口创建)         

         CCImageCommonWebp         

         tinyxml2/tinyxml2(可以用来读xml等)         

         CCSAXParser(可以用来读xml等)         

         CCThread(On iOS, should create autorelease pool when create a new thread)         

         platform         

         CCScriptSupport(脚本支持)         

         CCSpriteFrame(setDisplayFrame(frame)成员m_obOffset m_obOriginalSize m_bRotated m_obRect m_pobTexture)         

         CCAnimation(CCAnimationFrame:m_fDelayUnits m_pUserInfo。 CCAnimation:)         

         CCAnimationCache(动画存储池addAnimation removeAnimationByName animationByName addAnimationsWithDictionary         

         CCSprite         

         CCSpriteBatchNode(精灵池 open draw draw。。。。。close)         

         CCSpriteFrameCache         

         base64         

         CCNotificationCenter(中心类addObserver postNotification m_observers. CCNoti..Observer类 performSelector)         
         Json(json解析)         
         CCPointExtension         

         CCProfiling         

         ccUTF8         

         CCVertex         

         image_support/TGAlib         

         user_default/CCUserDefault(本地缓存 --通过读写xml文件)         

         user_default/CCUserDefaultAndroid         

         zip_support/ioapi         

         zip_support/unzip         

         zip_support/ZipUtils         

         HttpResponse(联网 http回应)         

         HttpRequest(联网 http请求)         

         HttpClient(联网)         

   CCArmature(骨骼动画)





0 0
原创粉丝点击