| Home 目次>ApplicationKit>NSOpenGLContext | |
setValues:forParameter:
指定したパラメータの値をセットします
-(void) setValues:(const long *)vals
forParameter:(NSOpenGLContextParameter)param
【返り値】 | |
| void | なし |
| 【パラメータ】 | |
| vals | |
| param | パラメータ |
【解説】
指定したパラメータの値をセットします。
【NSOpenGLContextParameter】
● NSOpenGLCPSwapRectangle
● NSOpenGLCPSwapRectangleEnable
● NSOpenGLCPRasterizationEnable
● NSOpenGLCPSwapInterval
● NSOpenGLCPSurfaceOrder
● NSOpenGLCPSurfaceOpacity 透明にするか
● NSOpenGLCPStateValidation
NSOpenGLCPSurfaceOpacityに0をセットするとバックグラウンドが透明になります。
【例文】
[glCon setValues:&setVal forParameter:NSOpenGLCPSwapRectangle];
[glCon getValues:&vals forParameter:NSOpenGLCPSwapRectangle];
openGLContext = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext: nil ];
[openGLContext setValues:&opaque forParameter:NSOpenGLCPSurfaceOpacity];
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSOpenGLContext | 修正日2006.12.26 |