'''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_SUN_triangle_list'
def _f( function ):
    return _p.createFunction( function,_p.GL,'GL_SUN_triangle_list',False)
_p.unpack_constants( """GL_RESTART_SUN 0x1
GL_REPLACE_MIDDLE_SUN 0x2
GL_REPLACE_OLDEST_SUN 0x3
GL_TRIANGLE_LIST_SUN 0x81D7
GL_REPLACEMENT_CODE_SUN 0x81D8
GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0
GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
GL_R1UI_V3F_SUN 0x85C4
GL_R1UI_C4UB_V3F_SUN 0x85C5
GL_R1UI_C3F_V3F_SUN 0x85C6
GL_R1UI_N3F_V3F_SUN 0x85C7
GL_R1UI_C4F_N3F_V3F_SUN 0x85C8
GL_R1UI_T2F_V3F_SUN 0x85C9
GL_R1UI_T2F_N3F_V3F_SUN 0x85CA
GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB""", globals())
glget.addGLGetConstant( GL_REPLACEMENT_CODE_SUN, (1,) )
glget.addGLGetConstant( GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN, (1,) )
glget.addGLGetConstant( GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN, (1,) )
@_f
@_p.types(None,_cs.GLuint)
def glReplacementCodeuiSUN( code ):pass
@_f
@_p.types(None,_cs.GLushort)
def glReplacementCodeusSUN( code ):pass
@_f
@_p.types(None,_cs.GLubyte)
def glReplacementCodeubSUN( code ):pass
@_f
@_p.types(None,arrays.GLuintArray)
def glReplacementCodeuivSUN( code ):pass
@_f
@_p.types(None,arrays.GLushortArray)
def glReplacementCodeusvSUN( code ):pass
@_f
@_p.types(None,arrays.GLubyteArray)
def glReplacementCodeubvSUN( code ):pass
@_f
@_p.types(None,_cs.GLenum,_cs.GLsizei,arrays.GLvoidpArray)
def glReplacementCodePointerSUN( type,stride,pointer ):pass


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