Пример #1
0
defines.add(kCGLRGB888Bit)
defines.add(kCGLRGBA16161616Bit)
defines.add(kCGLRGBAFloat128Bit)
defines.add(kCGLRGBAFloat256Bit)
defines.add(kCGLRGBAFloat64Bit)
defines.add(kCGLRGBFloat128Bit)
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'
Пример #2
0
defines.add(kCGLRGB888Bit)
defines.add(kCGLRGBA16161616Bit)
defines.add(kCGLRGBAFloat128Bit)
defines.add(kCGLRGBAFloat256Bit)
defines.add(kCGLRGBAFloat64Bit)
defines.add(kCGLRGBFloat128Bit)
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'
Пример #3
0
defines.add(EGL_VERSION_1_4)
defines.add(EGL_VERTICAL_RESOLUTION)
defines.add(EGL_VG_ALPHA_FORMAT)
defines.add(EGL_VG_ALPHA_FORMAT_NONPRE)
defines.add(EGL_VG_ALPHA_FORMAT_PRE)
defines.add(EGL_VG_ALPHA_FORMAT_PRE_BIT)
defines.add(EGL_VG_COLORSPACE)
defines.add(EGL_VG_COLORSPACE_LINEAR)
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' ))
Пример #4
0
defines.add(EGL_VERSION_1_4)
defines.add(EGL_VERTICAL_RESOLUTION)
defines.add(EGL_VG_ALPHA_FORMAT)
defines.add(EGL_VG_ALPHA_FORMAT_NONPRE)
defines.add(EGL_VG_ALPHA_FORMAT_PRE)
defines.add(EGL_VG_ALPHA_FORMAT_PRE_BIT)
defines.add(EGL_VG_COLORSPACE)
defines.add(EGL_VG_COLORSPACE_LINEAR)
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'))