摘要: - (NSString *) platformString{ // Gets a string with the device model size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); char *machine = malloc(size); sysctlbyname("hw.machine", machine, &size, NULL, 0); NSString *platform = [NSString stringWithCString:machine 阅读全文
posted @ 2013-10-11 15:50 飞云飘雪 阅读(201) 评论(0) 推荐(0)
摘要: - (CCSprite *)maskedSpriteWithSprite:(CCSprite *)textureSprite maskSprite:(CCSprite *)maskSprite { // 1 CCRenderTexture * rt = [CCRenderTexture renderTextureWithWidth:maskSprite.contentSizeInPixels.width height:maskSprite.contentSizeInPixels.height]; // 2 maskSprite.positi... 阅读全文
posted @ 2013-07-12 14:02 飞云飘雪 阅读(157) 评论(0) 推荐(0)
摘要: 1 - (CCSprite *)maskedSpriteWithSprite:(CCSprite *)textureSprite maskSprite:(CCSprite *)maskSprite { 2 3 // 1 4 CCRenderTexture * rt = [CCRenderTexture renderTextureWithWidth:maskSprite.contentSizeInPixels.width height:maskSprite.contentSizeInPixels.height]; 5 6 // 2 7 ma... 阅读全文
posted @ 2013-07-12 14:00 飞云飘雪 阅读(143) 评论(0) 推荐(0)