1 #import <Foundation/NSObject.h>
2 #import <OpenGL/OpenGL.h>
3 #import <CoreGraphics/CGGeometry.h>
5 @
class CARenderer
, CALayer
, CGLPixelSurface
, NSTimer
, NSMutableArray
, NSNumber
;
7 @interface CALayerContext
: NSObject
{
9 CGLPixelFormatObj _pixelFormat
;
10 CGLContextObj _glContext
;
12 CARenderer
*_renderer
;
14 NSMutableArray
*_deleteTextureIds
;
19 - initWithFrame
:(CGRect
)rect
;
21 - (void)setFrame
:(CGRect
)value
;
22 - (void)setLayer
:(CALayer
*)layer
;
28 - (void)startTimerIfNeeded
;
30 - (void)deleteTextureId
:(NSNumber
*)textureId
;