File: histogram.py

package info (click to toggle)
pyopengl 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,936 kB
  • ctags: 9,720
  • sloc: python: 49,408; makefile: 3
file content (59 lines) | stat: -rw-r--r-- 2,180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'''Autogenerated by get_gl_extensions script, do not edit!'''
from OpenGL import platform as _p, constants as _cs, arrays
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_histogram'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_EXT_histogram',False)
_p.unpack_constants( """GL_HISTOGRAM_EXT 0x8024
GL_PROXY_HISTOGRAM_EXT 0x8025
GL_HISTOGRAM_WIDTH_EXT 0x8026
GL_HISTOGRAM_FORMAT_EXT 0x8027
GL_HISTOGRAM_RED_SIZE_EXT 0x8028
GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029
GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A
GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B
GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C
GL_HISTOGRAM_SINK_EXT 0x802D
GL_MINMAX_EXT 0x802E
GL_MINMAX_FORMAT_EXT 0x802F
GL_MINMAX_SINK_EXT 0x8030
GL_TABLE_TOO_LARGE_EXT 0x8031""", globals())
glget.addGLGetConstant( GL_HISTOGRAM_EXT, (1,) )
glget.addGLGetConstant( GL_MINMAX_EXT, (1,) )
@_f
@_p.types(None,_cs.GLenum,_cs.GLboolean,_cs.GLenum,_cs.GLenum,ctypes.c_void_p)
def glGetHistogramEXT( target,reset,format,type,values ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLfloatArray)
def glGetHistogramParameterfvEXT( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glGetHistogramParameterivEXT( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLboolean,_cs.GLenum,_cs.GLenum,ctypes.c_void_p)
def glGetMinmaxEXT( target,reset,format,type,values ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLfloatArray)
def glGetMinmaxParameterfvEXT( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,arrays.GLintArray)
def glGetMinmaxParameterivEXT( target,pname,params ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLsizei,_cs.GLenum,_cs.GLboolean)
def glHistogramEXT( target,width,internalformat,sink ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLenum,_cs.GLboolean)
def glMinmaxEXT( target,internalformat,sink ):pass
@_f
@_p.types(None,_cs.GLenum)
def glResetHistogramEXT( target ):pass
@_f
@_p.types(None,_cs.GLenum)
def glResetMinmaxEXT( target ):pass


def glInitHistogramEXT():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( EXTENSION_NAME )