1'''OpenGL extension OES.byte_coordinates
2
3This module customises the behaviour of the
4OpenGL.raw.GL.OES.byte_coordinates to provide a more
5Python-friendly API
6
7Overview (from the spec)
8
9	This extension allows specifying, additionally to all existing
10	values, byte-valued vertex and texture coordinates to be used.
11
12	The main reason for introducing the byte-argument is to allow
13	storing data more compactly on memory-restricted environments.
14
15The official definition of this extension is available here:
16http://www.opengl.org/registry/specs/OES/byte_coordinates.txt
17'''
18from OpenGL import platform, constant, arrays
19from OpenGL import extensions, wrapper
20import ctypes
21from OpenGL.raw.GL import _types, _glgets
22from OpenGL.raw.GL.OES.byte_coordinates import *
23from OpenGL.raw.GL.OES.byte_coordinates import _EXTENSION_NAME
24
25def glInitByteCoordinatesOES():
26    '''Return boolean indicating whether this extension is available'''
27    from OpenGL import extensions
28    return extensions.hasGLExtension( _EXTENSION_NAME )
29
30glMultiTexCoord1bvOES=wrapper.wrapper(glMultiTexCoord1bvOES).setInputArraySize(
31    'coords', 1
32)
33glMultiTexCoord2bvOES=wrapper.wrapper(glMultiTexCoord2bvOES).setInputArraySize(
34    'coords', 2
35)
36glMultiTexCoord3bvOES=wrapper.wrapper(glMultiTexCoord3bvOES).setInputArraySize(
37    'coords', 3
38)
39glMultiTexCoord4bvOES=wrapper.wrapper(glMultiTexCoord4bvOES).setInputArraySize(
40    'coords', 4
41)
42glTexCoord1bvOES=wrapper.wrapper(glTexCoord1bvOES).setInputArraySize(
43    'coords', 1
44)
45glTexCoord2bvOES=wrapper.wrapper(glTexCoord2bvOES).setInputArraySize(
46    'coords', 2
47)
48glTexCoord3bvOES=wrapper.wrapper(glTexCoord3bvOES).setInputArraySize(
49    'coords', 3
50)
51glTexCoord4bvOES=wrapper.wrapper(glTexCoord4bvOES).setInputArraySize(
52    'coords', 4
53)
54glVertex2bvOES=wrapper.wrapper(glVertex2bvOES).setInputArraySize(
55    'coords', 2
56)
57glVertex3bvOES=wrapper.wrapper(glVertex3bvOES).setInputArraySize(
58    'coords', 3
59)
60glVertex4bvOES=wrapper.wrapper(glVertex4bvOES).setInputArraySize(
61    'coords', 4
62)
63### END AUTOGENERATED SECTION