CGLPixelSurface.h
1 #import <Foundation/NSObject.h> 2 #import <Onyx2D/O2Geometry.h> 3 #import <OpenGL/OpenGL.h> 4 5 @class O2Surface, CGWindow; 6 7 @interface CGLPixelSurface : NSObject { 8 int _width, _height; 9 BOOL _isOpaque, _validBuffers; 10 int _numberOfBuffers; 11 int _rowsPerBuffer; 12 GLuint *_bufferObjects; 13 void **_readPixels; 14 void **_staticPixels; 15 16 O2Surface *_surface; 17 } 18 19 - initWithSize: (O2Size) size; 20 21 - (void) setFrameSize: (O2Size) value; 22 - (void) setOpaque: (BOOL) value; 23 24 - (void) readBuffer; 25 26 - (O2Surface *) validSurface; 27 28 @end