Пример #1
0
defines.add(kCGLRGBFloat256Bit)
defines.add(kCGLRGBFloat64Bit)
defines.add(kCGLSingleBufferBit)
defines.add(kCGLStereoscopicBit)
defines.add(kCGLSupersampleBit)
defines.add(kCGLTripleBufferBit)

# CGL_VERSION_1_0

CGLChoosePixelFormat = Function('CGLChoosePixelFormat')
CGLChoosePixelFormat.ret = Return('CGLError')
CGLChoosePixelFormat.add( Input( 'attribs','const CGLPixelFormatAttribute *' ))
CGLChoosePixelFormat.add( Output( 'pix','CGLPixelFormatObj *' ))
CGLChoosePixelFormat.add( Output( 'npix','GLint *' ))
CGLChoosePixelFormat.version = ''
CGLChoosePixelFormat.category = 'CGL_VERSION_1_0'
CGLChoosePixelFormat.trace = True
CGLChoosePixelFormat.play = True
cgl.add(CGLChoosePixelFormat)

CGLClearDrawable = Function('CGLClearDrawable')
CGLClearDrawable.ret = Return('CGLError')
CGLClearDrawable.add( Input( 'ctx','CGLContextObj' ))
CGLClearDrawable.version = ''
CGLClearDrawable.category = 'CGL_VERSION_1_0'
CGLClearDrawable.trace = True
CGLClearDrawable.play = True
cgl.add(CGLClearDrawable)

CGLCopyContext = Function('CGLCopyContext')
CGLCopyContext.ret = Return('CGLError')
Пример #2
0
defines.add(kCGLRGBFloat256Bit)
defines.add(kCGLRGBFloat64Bit)
defines.add(kCGLSingleBufferBit)
defines.add(kCGLStereoscopicBit)
defines.add(kCGLSupersampleBit)
defines.add(kCGLTripleBufferBit)

# CGL_VERSION_1_0

CGLChoosePixelFormat = Function('CGLChoosePixelFormat')
CGLChoosePixelFormat.ret = Return('CGLError')
CGLChoosePixelFormat.add( Input( 'attribs','const CGLPixelFormatAttribute *' ))
CGLChoosePixelFormat.add( Output( 'pix','CGLPixelFormatObj *' ))
CGLChoosePixelFormat.add( Output( 'npix','GLint *' ))
CGLChoosePixelFormat.version = ''
CGLChoosePixelFormat.category = 'CGL_VERSION_1_0'
CGLChoosePixelFormat.trace = True
CGLChoosePixelFormat.play = True
cgl.add(CGLChoosePixelFormat)

CGLClearDrawable = Function('CGLClearDrawable')
CGLClearDrawable.ret = Return('CGLError')
CGLClearDrawable.add( Input( 'ctx','CGLContextObj' ))
CGLClearDrawable.version = ''
CGLClearDrawable.category = 'CGL_VERSION_1_0'
CGLClearDrawable.trace = True
CGLClearDrawable.play = True
cgl.add(CGLClearDrawable)

CGLCopyContext = Function('CGLCopyContext')
CGLCopyContext.ret = Return('CGLError')
Пример #3
0
defines.add(EGL_VG_COLORSPACE_LINEAR_BIT)
defines.add(EGL_VG_COLORSPACE_sRGB)
defines.add(EGL_WIDTH)
defines.add(EGL_WINDOW_BIT)

# EGL_VERSION_1_0

eglChooseConfig = Function('eglChooseConfig')
eglChooseConfig.ret = Return('EGLBoolean')
eglChooseConfig.add( Input( 'dpy','EGLDisplay' ))
eglChooseConfig.add( Input( 'attrib_list','const EGLint *' ))
eglChooseConfig.add( Input( 'configs','EGLConfig *' ))
eglChooseConfig.add( Input( 'config_size','EGLint' ))
eglChooseConfig.add( Input( 'num_config','EGLint *' ))
eglChooseConfig.version = ''
eglChooseConfig.category = 'EGL_VERSION_1_0'
eglChooseConfig.trace = True
eglChooseConfig.play = True
egl.add(eglChooseConfig)

eglCopyBuffers = Function('eglCopyBuffers')
eglCopyBuffers.ret = Return('EGLBoolean')
eglCopyBuffers.add( Input( 'dpy','EGLDisplay' ))
eglCopyBuffers.add( Input( 'surface','EGLSurface' ))
eglCopyBuffers.add( Input( 'target','EGLNativePixmapType' ))
eglCopyBuffers.version = ''
eglCopyBuffers.category = 'EGL_VERSION_1_0'
eglCopyBuffers.trace = True
eglCopyBuffers.play = True
egl.add(eglCopyBuffers)
Пример #4
0
defines.add(EGL_VG_COLORSPACE_LINEAR_BIT)
defines.add(EGL_VG_COLORSPACE_sRGB)
defines.add(EGL_WIDTH)
defines.add(EGL_WINDOW_BIT)

# EGL_VERSION_1_0

eglChooseConfig = Function('eglChooseConfig')
eglChooseConfig.ret = Return('EGLBoolean')
eglChooseConfig.add(Input('dpy', 'EGLDisplay'))
eglChooseConfig.add(Input('attrib_list', 'const EGLint *'))
eglChooseConfig.add(Input('configs', 'EGLConfig *'))
eglChooseConfig.add(Input('config_size', 'EGLint'))
eglChooseConfig.add(Input('num_config', 'EGLint *'))
eglChooseConfig.version = ''
eglChooseConfig.category = 'EGL_VERSION_1_0'
eglChooseConfig.trace = True
eglChooseConfig.play = True
egl.add(eglChooseConfig)

eglCopyBuffers = Function('eglCopyBuffers')
eglCopyBuffers.ret = Return('EGLBoolean')
eglCopyBuffers.add(Input('dpy', 'EGLDisplay'))
eglCopyBuffers.add(Input('surface', 'EGLSurface'))
eglCopyBuffers.add(Input('target', 'EGLNativePixmapType'))
eglCopyBuffers.version = ''
eglCopyBuffers.category = 'EGL_VERSION_1_0'
eglCopyBuffers.trace = True
eglCopyBuffers.play = True
egl.add(eglCopyBuffers)