modules/graphics/src/main/native-glass/mac/GlassOffscreen.h
Print this page
*** 30,39 ****
--- 30,40 ----
@protocol GlassOffscreenProtocol
// as destination (to draw into)
- (void)bindForWidth:(GLuint)width andHeight:(GLuint)height;
+ - (void)unbind;
// as source (to show)
- (GLuint)texture;
- (void)blitForWidth:(GLuint)width andHeight:(GLuint)height;
*** 58,68 ****
GLfloat _backgroundA;
CAOpenGLLayer* _layer;
}
! - (id)initWithContext:(CGLContextObj)ctx;
- (CGLContextObj)getContext;
- (void)setBackgroundColor:(NSColor*)color;
- (void)blit;
--- 59,70 ----
GLfloat _backgroundA;
CAOpenGLLayer* _layer;
}
! - (id)initWithContext:(CGLContextObj)ctx
! andIsSwPipe:(BOOL)isSwPipe;
- (CGLContextObj)getContext;
- (void)setBackgroundColor:(NSColor*)color;
- (void)blit;