摘要: coco2d 设置可见区域参考http://blog.csdn.net/tangaowen/article/details/7539536原理1 重写visit 方法2glScissor 函数-(void) visit{ // quick return if not visible. children won't be drawn. if (!visible_) return; kmGLPushMatrix(); if ( grid_ && grid_.active) [grid_ beforeDraw]; [s... 阅读全文
posted @ 2013-09-01 21:52 thc 阅读(513) 评论(0) 推荐(0)
摘要: 原文参考http://www.pawapps.com/2011/10/24/tutorial-cdaudiomanager-and-cdsoundengine/做了下封装GameSound.h 1 #import 2 #import "CDAudioManager.h" 3 4 // This is a shared header 5 // Don't mind too much what is in this file yet, it'll be explained below. 6 /** CDAudioManager supports two long 阅读全文
posted @ 2013-09-01 17:49 thc 阅读(525) 评论(0) 推荐(0)