¡@

Home 

2014/10/15 ¤U¤È 10:13:39

iphone Programming Glossary: scenecenterpoint

Marrying Core Animation with OpenGL ES

http://stackoverflow.com/questions/4500708/marrying-core-animation-with-opengl-es

standard approach to animate custom properties in a CALayer I created a subclass of CAEAGLLayer and defined a property sceneCenterPoint in it whose value should be animated. My layer also holds a reference to the OpenGL renderer #import UIKit UIKit.h #import.. CAEAGLLayer ES2Renderer renderer @property nonatomic retain ES2Renderer renderer @property nonatomic assign CGPoint sceneCenterPoint I then declare the property @dynamic to let CA create the accessors override needsDisplayForKey and implement drawInContext.. let CA create the accessors override needsDisplayForKey and implement drawInContext to pass the current value of the sceneCenterPoint property to the renderer and ask it to render the scene #import GLLayer.h @implementation GLLayer @synthesize renderer @dynamic..