|
From: Remo E. <re...@pl...> - 2005-04-17 11:33:33
|
hi all
i try to implement the following:
OSX::NSOpenGLPixelFormat.alloc.initWithAttributes(attribs)
i found this in the cocoa-documentation:
- (id)initWithAttributes:(NSOpenGLPixelFormatAttribute *)attribs
How i can create "attribs"-variable with RubyCocoa ? must i use NSData ?
i would translate the following:
NSOpenGLPixelFormatAttribute attr[] = {
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAccelerated,
NSOpenGLPFAColorSize, BITS_PER_PIXEL,
NSOpenGLPFADepthSize, DEPTH_SIZE,
0
};
thanks,
Remo Eichenberger
|