iphone Programming Glossary: ccglview
cocos2d 2.0-rc2: end the director and restart http://stackoverflow.com/questions/11037134/cocos2d-2-0-rc2-end-the-director-and-restart a start button void startGameButtonPressed CCDirectorIOS director CCDirectorIOS CCDirector sharedDirector Create an CCGLView with a RGB565 color buffer and a depth buffer of 0 bits self.glView CCGLView viewWithFrame CGRectMake 0 0 480 320 pixelFormat.. CCDirector sharedDirector Create an CCGLView with a RGB565 color buffer and a depth buffer of 0 bits self.glView CCGLView viewWithFrame CGRectMake 0 0 480 320 pixelFormat kEAGLColorFormatRGB565 kEAGLColorFormatRGBA8 depthFormat 0 GL_DEPTH_COMPONENT24_OES.. the director setup is done in the appDelegate it's taken unchanged from the default Cocos2d template . I only put the CCGLView as a retained property into my MenuViewController because otherwise the app crashes when CCDirector sharedDirector end is..
UITableView & UIScrollview stop cocos2d animations http://stackoverflow.com/questions/15185720/uitableview-uiscrollview-stop-cocos2d-animations frameRenderingDispatchQueue ^ HERE dispatch_async make black screen i shows everything but still bad performance. CCGLView openGLview CCGLView self view EAGLContext setCurrentContext openGLview.context self drawScene dispatch_semaphore_signal.. ^ HERE dispatch_async make black screen i shows everything but still bad performance. CCGLView openGLview CCGLView self view EAGLContext setCurrentContext openGLview.context self drawScene dispatch_semaphore_signal frameRenderingSemaphore.. EAGLContext setCurrentContext openGLview.context self drawScene dispatch_semaphore_signal frameRenderingSemaphore else CCGLView openGLview CCGLView self view EAGLContext setCurrentContext openGLview.context self drawScene dispatch_semaphore_signal..
removing jagged edges of my ropes using antialiasing of OpenGLES http://stackoverflow.com/questions/17500418/removing-jagged-edges-of-my-ropes-using-antialiasing-of-opengles and enabling it will have a performance penalty most severely on older devices iPhone 3GS . Locate the line where CCGLView is instantiated in AppDelegate and enable multi sampling and set the number of samples to 2 or 4. CCGLView glView CCGLView.. line where CCGLView is instantiated in AppDelegate and enable multi sampling and set the number of samples to 2 or 4. CCGLView glView CCGLView viewWithFrame window bounds pixelFormat kEAGLColorFormatRGBA8 use whichever is your default depthFormat.. is instantiated in AppDelegate and enable multi sampling and set the number of samples to 2 or 4. CCGLView glView CCGLView viewWithFrame window bounds pixelFormat kEAGLColorFormatRGBA8 use whichever is your default depthFormat GL_DEPTH_COMPONENT24_OES..
|