How to use deprecated method in stryker-parent

Best JavaScript code snippet using stryker-parent

GL_2_0.py

Source:GL_2_0.py Github

copy

Full Screen

1'''OpenGL extension VERSION.GL_2_02Automatically generated by the get_gl_extensions script, do not edit!3'''4from OpenGL import platform, constants, constant, arrays5from OpenGL import extensions6from OpenGL.GL import glget7import ctypes8EXTENSION_NAME = 'GL_VERSION_GL_2_0'9_DEPRECATED = False10GL_BLEND_EQUATION_RGB = constant.Constant( 'GL_BLEND_EQUATION_RGB', 0x8009 )11GL_VERTEX_ATTRIB_ARRAY_ENABLED = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_ENABLED', 0x8622 )12GL_VERTEX_ATTRIB_ARRAY_SIZE = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_SIZE', 0x8623 )13GL_VERTEX_ATTRIB_ARRAY_STRIDE = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_STRIDE', 0x8624 )14GL_VERTEX_ATTRIB_ARRAY_TYPE = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_TYPE', 0x8625 )15GL_CURRENT_VERTEX_ATTRIB = constant.Constant( 'GL_CURRENT_VERTEX_ATTRIB', 0x8626 )16GL_VERTEX_PROGRAM_POINT_SIZE = constant.Constant( 'GL_VERTEX_PROGRAM_POINT_SIZE', 0x8642 )17GL_VERTEX_ATTRIB_ARRAY_POINTER = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_POINTER', 0x8645 )18GL_STENCIL_BACK_FUNC = constant.Constant( 'GL_STENCIL_BACK_FUNC', 0x8800 )19GL_STENCIL_BACK_FAIL = constant.Constant( 'GL_STENCIL_BACK_FAIL', 0x8801 )20GL_STENCIL_BACK_PASS_DEPTH_FAIL = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_FAIL', 0x8802 )21GL_STENCIL_BACK_PASS_DEPTH_PASS = constant.Constant( 'GL_STENCIL_BACK_PASS_DEPTH_PASS', 0x8803 )22GL_MAX_DRAW_BUFFERS = constant.Constant( 'GL_MAX_DRAW_BUFFERS', 0x8824 )23GL_DRAW_BUFFER0 = constant.Constant( 'GL_DRAW_BUFFER0', 0x8825 )24GL_DRAW_BUFFER1 = constant.Constant( 'GL_DRAW_BUFFER1', 0x8826 )25GL_DRAW_BUFFER2 = constant.Constant( 'GL_DRAW_BUFFER2', 0x8827 )26GL_DRAW_BUFFER3 = constant.Constant( 'GL_DRAW_BUFFER3', 0x8828 )27GL_DRAW_BUFFER4 = constant.Constant( 'GL_DRAW_BUFFER4', 0x8829 )28GL_DRAW_BUFFER5 = constant.Constant( 'GL_DRAW_BUFFER5', 0x882A )29GL_DRAW_BUFFER6 = constant.Constant( 'GL_DRAW_BUFFER6', 0x882B )30GL_DRAW_BUFFER7 = constant.Constant( 'GL_DRAW_BUFFER7', 0x882C )31GL_DRAW_BUFFER8 = constant.Constant( 'GL_DRAW_BUFFER8', 0x882D )32GL_DRAW_BUFFER9 = constant.Constant( 'GL_DRAW_BUFFER9', 0x882E )33GL_DRAW_BUFFER10 = constant.Constant( 'GL_DRAW_BUFFER10', 0x882F )34GL_DRAW_BUFFER11 = constant.Constant( 'GL_DRAW_BUFFER11', 0x8830 )35GL_DRAW_BUFFER12 = constant.Constant( 'GL_DRAW_BUFFER12', 0x8831 )36GL_DRAW_BUFFER13 = constant.Constant( 'GL_DRAW_BUFFER13', 0x8832 )37GL_DRAW_BUFFER14 = constant.Constant( 'GL_DRAW_BUFFER14', 0x8833 )38GL_DRAW_BUFFER15 = constant.Constant( 'GL_DRAW_BUFFER15', 0x8834 )39GL_BLEND_EQUATION_ALPHA = constant.Constant( 'GL_BLEND_EQUATION_ALPHA', 0x883D )40GL_MAX_VERTEX_ATTRIBS = constant.Constant( 'GL_MAX_VERTEX_ATTRIBS', 0x8869 )41GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = constant.Constant( 'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED', 0x886A )42GL_MAX_TEXTURE_IMAGE_UNITS = constant.Constant( 'GL_MAX_TEXTURE_IMAGE_UNITS', 0x8872 )43GL_FRAGMENT_SHADER = constant.Constant( 'GL_FRAGMENT_SHADER', 0x8B30 )44GL_VERTEX_SHADER = constant.Constant( 'GL_VERTEX_SHADER', 0x8B31 )45GL_MAX_FRAGMENT_UNIFORM_COMPONENTS = constant.Constant( 'GL_MAX_FRAGMENT_UNIFORM_COMPONENTS', 0x8B49 )46GL_MAX_VERTEX_UNIFORM_COMPONENTS = constant.Constant( 'GL_MAX_VERTEX_UNIFORM_COMPONENTS', 0x8B4A )47GL_MAX_VARYING_FLOATS = constant.Constant( 'GL_MAX_VARYING_FLOATS', 0x8B4B )48GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = constant.Constant( 'GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS', 0x8B4C )49GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = constant.Constant( 'GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS', 0x8B4D )50GL_SHADER_TYPE = constant.Constant( 'GL_SHADER_TYPE', 0x8B4F )51GL_FLOAT_VEC2 = constant.Constant( 'GL_FLOAT_VEC2', 0x8B50 )52GL_FLOAT_VEC3 = constant.Constant( 'GL_FLOAT_VEC3', 0x8B51 )53GL_FLOAT_VEC4 = constant.Constant( 'GL_FLOAT_VEC4', 0x8B52 )54GL_INT_VEC2 = constant.Constant( 'GL_INT_VEC2', 0x8B53 )55GL_INT_VEC3 = constant.Constant( 'GL_INT_VEC3', 0x8B54 )56GL_INT_VEC4 = constant.Constant( 'GL_INT_VEC4', 0x8B55 )57GL_BOOL = constant.Constant( 'GL_BOOL', 0x8B56 )58GL_BOOL_VEC2 = constant.Constant( 'GL_BOOL_VEC2', 0x8B57 )59GL_BOOL_VEC3 = constant.Constant( 'GL_BOOL_VEC3', 0x8B58 )60GL_BOOL_VEC4 = constant.Constant( 'GL_BOOL_VEC4', 0x8B59 )61GL_FLOAT_MAT2 = constant.Constant( 'GL_FLOAT_MAT2', 0x8B5A )62GL_FLOAT_MAT3 = constant.Constant( 'GL_FLOAT_MAT3', 0x8B5B )63GL_FLOAT_MAT4 = constant.Constant( 'GL_FLOAT_MAT4', 0x8B5C )64GL_SAMPLER_1D = constant.Constant( 'GL_SAMPLER_1D', 0x8B5D )65GL_SAMPLER_2D = constant.Constant( 'GL_SAMPLER_2D', 0x8B5E )66GL_SAMPLER_3D = constant.Constant( 'GL_SAMPLER_3D', 0x8B5F )67GL_SAMPLER_CUBE = constant.Constant( 'GL_SAMPLER_CUBE', 0x8B60 )68GL_SAMPLER_1D_SHADOW = constant.Constant( 'GL_SAMPLER_1D_SHADOW', 0x8B61 )69GL_SAMPLER_2D_SHADOW = constant.Constant( 'GL_SAMPLER_2D_SHADOW', 0x8B62 )70GL_DELETE_STATUS = constant.Constant( 'GL_DELETE_STATUS', 0x8B80 )71GL_COMPILE_STATUS = constant.Constant( 'GL_COMPILE_STATUS', 0x8B81 )72GL_LINK_STATUS = constant.Constant( 'GL_LINK_STATUS', 0x8B82 )73GL_VALIDATE_STATUS = constant.Constant( 'GL_VALIDATE_STATUS', 0x8B83 )74GL_INFO_LOG_LENGTH = constant.Constant( 'GL_INFO_LOG_LENGTH', 0x8B84 )75GL_ATTACHED_SHADERS = constant.Constant( 'GL_ATTACHED_SHADERS', 0x8B85 )76GL_ACTIVE_UNIFORMS = constant.Constant( 'GL_ACTIVE_UNIFORMS', 0x8B86 )77GL_ACTIVE_UNIFORM_MAX_LENGTH = constant.Constant( 'GL_ACTIVE_UNIFORM_MAX_LENGTH', 0x8B87 )78GL_SHADER_SOURCE_LENGTH = constant.Constant( 'GL_SHADER_SOURCE_LENGTH', 0x8B88 )79GL_ACTIVE_ATTRIBUTES = constant.Constant( 'GL_ACTIVE_ATTRIBUTES', 0x8B89 )80GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = constant.Constant( 'GL_ACTIVE_ATTRIBUTE_MAX_LENGTH', 0x8B8A )81GL_FRAGMENT_SHADER_DERIVATIVE_HINT = constant.Constant( 'GL_FRAGMENT_SHADER_DERIVATIVE_HINT', 0x8B8B )82GL_SHADING_LANGUAGE_VERSION = constant.Constant( 'GL_SHADING_LANGUAGE_VERSION', 0x8B8C )83GL_CURRENT_PROGRAM = constant.Constant( 'GL_CURRENT_PROGRAM', 0x8B8D )84GL_POINT_SPRITE_COORD_ORIGIN = constant.Constant( 'GL_POINT_SPRITE_COORD_ORIGIN', 0x8CA0 )85GL_LOWER_LEFT = constant.Constant( 'GL_LOWER_LEFT', 0x8CA1 )86GL_UPPER_LEFT = constant.Constant( 'GL_UPPER_LEFT', 0x8CA2 )87GL_STENCIL_BACK_REF = constant.Constant( 'GL_STENCIL_BACK_REF', 0x8CA3 )88GL_STENCIL_BACK_VALUE_MASK = constant.Constant( 'GL_STENCIL_BACK_VALUE_MASK', 0x8CA4 )89GL_STENCIL_BACK_WRITEMASK = constant.Constant( 'GL_STENCIL_BACK_WRITEMASK', 0x8CA5 )90glBlendEquationSeparate = platform.createExtensionFunction( 91'glBlendEquationSeparate',dll=platform.GL,92extension=EXTENSION_NAME,93resultType=None, 94argTypes=(constants.GLenum,constants.GLenum,),95doc='glBlendEquationSeparate(GLenum(modeRGB), GLenum(modeAlpha)) -> None',96argNames=('modeRGB','modeAlpha',),97deprecated=_DEPRECATED,98)99glDrawBuffers = platform.createExtensionFunction( 100'glDrawBuffers',dll=platform.GL,101extension=EXTENSION_NAME,102resultType=None, 103argTypes=(constants.GLsizei,arrays.GLuintArray,),104doc='glDrawBuffers(GLsizei(n), GLuintArray(bufs)) -> None',105argNames=('n','bufs',),106deprecated=_DEPRECATED,107)108glStencilOpSeparate = platform.createExtensionFunction( 109'glStencilOpSeparate',dll=platform.GL,110extension=EXTENSION_NAME,111resultType=None, 112argTypes=(constants.GLenum,constants.GLenum,constants.GLenum,constants.GLenum,),113doc='glStencilOpSeparate(GLenum(face), GLenum(sfail), GLenum(dpfail), GLenum(dppass)) -> None',114argNames=('face','sfail','dpfail','dppass',),115deprecated=_DEPRECATED,116)117glStencilFuncSeparate = platform.createExtensionFunction( 118'glStencilFuncSeparate',dll=platform.GL,119extension=EXTENSION_NAME,120resultType=None, 121argTypes=(constants.GLenum,constants.GLenum,constants.GLint,constants.GLuint,),122doc='glStencilFuncSeparate(GLenum(frontfunc), GLenum(backfunc), GLint(ref), GLuint(mask)) -> None',123argNames=('frontfunc','backfunc','ref','mask',),124deprecated=_DEPRECATED,125)126glStencilMaskSeparate = platform.createExtensionFunction( 127'glStencilMaskSeparate',dll=platform.GL,128extension=EXTENSION_NAME,129resultType=None, 130argTypes=(constants.GLenum,constants.GLuint,),131doc='glStencilMaskSeparate(GLenum(face), GLuint(mask)) -> None',132argNames=('face','mask',),133deprecated=_DEPRECATED,134)135glAttachShader = platform.createExtensionFunction( 136'glAttachShader',dll=platform.GL,137extension=EXTENSION_NAME,138resultType=None, 139argTypes=(constants.GLuint,constants.GLuint,),140doc='glAttachShader(GLuint(program), GLuint(shader)) -> None',141argNames=('program','shader',),142deprecated=_DEPRECATED,143)144glBindAttribLocation = platform.createExtensionFunction( 145'glBindAttribLocation',dll=platform.GL,146extension=EXTENSION_NAME,147resultType=None, 148argTypes=(constants.GLuint,constants.GLuint,arrays.GLcharArray,),149doc='glBindAttribLocation(GLuint(program), GLuint(index), GLcharArray(name)) -> None',150argNames=('program','index','name',),151deprecated=_DEPRECATED,152)153glCompileShader = platform.createExtensionFunction( 154'glCompileShader',dll=platform.GL,155extension=EXTENSION_NAME,156resultType=None, 157argTypes=(constants.GLuint,),158doc='glCompileShader(GLuint(shader)) -> None',159argNames=('shader',),160deprecated=_DEPRECATED,161)162glCreateProgram = platform.createExtensionFunction( 163'glCreateProgram',dll=platform.GL,164extension=EXTENSION_NAME,165resultType=constants.GLuint, 166argTypes=(),167doc='glCreateProgram() -> constants.GLuint',168argNames=(),169deprecated=_DEPRECATED,170)171glCreateShader = platform.createExtensionFunction( 172'glCreateShader',dll=platform.GL,173extension=EXTENSION_NAME,174resultType=constants.GLuint, 175argTypes=(constants.GLenum,),176doc='glCreateShader(GLenum(type)) -> constants.GLuint',177argNames=('type',),178deprecated=_DEPRECATED,179)180glDeleteProgram = platform.createExtensionFunction( 181'glDeleteProgram',dll=platform.GL,182extension=EXTENSION_NAME,183resultType=None, 184argTypes=(constants.GLuint,),185doc='glDeleteProgram(GLuint(program)) -> None',186argNames=('program',),187deprecated=_DEPRECATED,188)189glDeleteShader = platform.createExtensionFunction( 190'glDeleteShader',dll=platform.GL,191extension=EXTENSION_NAME,192resultType=None, 193argTypes=(constants.GLuint,),194doc='glDeleteShader(GLuint(shader)) -> None',195argNames=('shader',),196deprecated=_DEPRECATED,197)198glDetachShader = platform.createExtensionFunction( 199'glDetachShader',dll=platform.GL,200extension=EXTENSION_NAME,201resultType=None, 202argTypes=(constants.GLuint,constants.GLuint,),203doc='glDetachShader(GLuint(program), GLuint(shader)) -> None',204argNames=('program','shader',),205deprecated=_DEPRECATED,206)207glDisableVertexAttribArray = platform.createExtensionFunction( 208'glDisableVertexAttribArray',dll=platform.GL,209extension=EXTENSION_NAME,210resultType=None, 211argTypes=(constants.GLuint,),212doc='glDisableVertexAttribArray(GLuint(index)) -> None',213argNames=('index',),214deprecated=_DEPRECATED,215)216glEnableVertexAttribArray = platform.createExtensionFunction( 217'glEnableVertexAttribArray',dll=platform.GL,218extension=EXTENSION_NAME,219resultType=None, 220argTypes=(constants.GLuint,),221doc='glEnableVertexAttribArray(GLuint(index)) -> None',222argNames=('index',),223deprecated=_DEPRECATED,224)225glGetActiveAttrib = platform.createExtensionFunction( 226'glGetActiveAttrib',dll=platform.GL,227extension=EXTENSION_NAME,228resultType=None, 229argTypes=(constants.GLuint,constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLintArray,arrays.GLuintArray,arrays.GLcharArray,),230doc='glGetActiveAttrib(GLuint(program), GLuint(index), GLsizei(bufSize), GLsizeiArray(length), GLintArray(size), GLuintArray(type), GLcharArray(name)) -> None',231argNames=('program','index','bufSize','length','size','type','name',),232deprecated=_DEPRECATED,233)234glGetActiveUniform = platform.createExtensionFunction( 235'glGetActiveUniform',dll=platform.GL,236extension=EXTENSION_NAME,237resultType=None, 238argTypes=(constants.GLuint,constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLintArray,arrays.GLuintArray,arrays.GLcharArray,),239doc='glGetActiveUniform(GLuint(program), GLuint(index), GLsizei(bufSize), GLsizeiArray(length), GLintArray(size), GLuintArray(type), GLcharArray(name)) -> None',240argNames=('program','index','bufSize','length','size','type','name',),241deprecated=_DEPRECATED,242)243glGetAttachedShaders = platform.createExtensionFunction( 244'glGetAttachedShaders',dll=platform.GL,245extension=EXTENSION_NAME,246resultType=None, 247argTypes=(constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLuintArray,),248doc='glGetAttachedShaders(GLuint(program), GLsizei(maxCount), GLsizeiArray(count), GLuintArray(obj)) -> None',249argNames=('program','maxCount','count','obj',),250deprecated=_DEPRECATED,251)252glGetAttribLocation = platform.createExtensionFunction( 253'glGetAttribLocation',dll=platform.GL,254extension=EXTENSION_NAME,255resultType=constants.GLint, 256argTypes=(constants.GLuint,arrays.GLcharArray,),257doc='glGetAttribLocation(GLuint(program), GLcharArray(name)) -> constants.GLint',258argNames=('program','name',),259deprecated=_DEPRECATED,260)261glGetProgramiv = platform.createExtensionFunction( 262'glGetProgramiv',dll=platform.GL,263extension=EXTENSION_NAME,264resultType=None, 265argTypes=(constants.GLuint,constants.GLenum,arrays.GLintArray,),266doc='glGetProgramiv(GLuint(program), GLenum(pname), GLintArray(params)) -> None',267argNames=('program','pname','params',),268deprecated=_DEPRECATED,269)270glGetProgramInfoLog = platform.createExtensionFunction( 271'glGetProgramInfoLog',dll=platform.GL,272extension=EXTENSION_NAME,273resultType=None, 274argTypes=(constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray,),275doc='glGetProgramInfoLog(GLuint(program), GLsizei(bufSize), GLsizeiArray(length), GLcharArray(infoLog)) -> None',276argNames=('program','bufSize','length','infoLog',),277deprecated=_DEPRECATED,278)279glGetShaderiv = platform.createExtensionFunction( 280'glGetShaderiv',dll=platform.GL,281extension=EXTENSION_NAME,282resultType=None, 283argTypes=(constants.GLuint,constants.GLenum,arrays.GLintArray,),284doc='glGetShaderiv(GLuint(shader), GLenum(pname), GLintArray(params)) -> None',285argNames=('shader','pname','params',),286deprecated=_DEPRECATED,287)288glGetShaderInfoLog = platform.createExtensionFunction( 289'glGetShaderInfoLog',dll=platform.GL,290extension=EXTENSION_NAME,291resultType=None, 292argTypes=(constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray,),293doc='glGetShaderInfoLog(GLuint(shader), GLsizei(bufSize), GLsizeiArray(length), GLcharArray(infoLog)) -> None',294argNames=('shader','bufSize','length','infoLog',),295deprecated=_DEPRECATED,296)297glGetShaderSource = platform.createExtensionFunction( 298'glGetShaderSource',dll=platform.GL,299extension=EXTENSION_NAME,300resultType=None, 301argTypes=(constants.GLuint,constants.GLsizei,arrays.GLsizeiArray,arrays.GLcharArray,),302doc='glGetShaderSource(GLuint(shader), GLsizei(bufSize), GLsizeiArray(length), GLcharArray(source)) -> None',303argNames=('shader','bufSize','length','source',),304deprecated=_DEPRECATED,305)306glGetUniformLocation = platform.createExtensionFunction( 307'glGetUniformLocation',dll=platform.GL,308extension=EXTENSION_NAME,309resultType=constants.GLint, 310argTypes=(constants.GLuint,arrays.GLcharArray,),311doc='glGetUniformLocation(GLuint(program), GLcharArray(name)) -> constants.GLint',312argNames=('program','name',),313deprecated=_DEPRECATED,314)315glGetUniformfv = platform.createExtensionFunction( 316'glGetUniformfv',dll=platform.GL,317extension=EXTENSION_NAME,318resultType=None, 319argTypes=(constants.GLuint,constants.GLint,arrays.GLfloatArray,),320doc='glGetUniformfv(GLuint(program), GLint(location), GLfloatArray(params)) -> None',321argNames=('program','location','params',),322deprecated=_DEPRECATED,323)324glGetUniformiv = platform.createExtensionFunction( 325'glGetUniformiv',dll=platform.GL,326extension=EXTENSION_NAME,327resultType=None, 328argTypes=(constants.GLuint,constants.GLint,arrays.GLintArray,),329doc='glGetUniformiv(GLuint(program), GLint(location), GLintArray(params)) -> None',330argNames=('program','location','params',),331deprecated=_DEPRECATED,332)333glGetVertexAttribdv = platform.createExtensionFunction( 334'glGetVertexAttribdv',dll=platform.GL,335extension=EXTENSION_NAME,336resultType=None, 337argTypes=(constants.GLuint,constants.GLenum,arrays.GLdoubleArray,),338doc='glGetVertexAttribdv(GLuint(index), GLenum(pname), GLdoubleArray(params)) -> None',339argNames=('index','pname','params',),340deprecated=_DEPRECATED,341)342glGetVertexAttribfv = platform.createExtensionFunction( 343'glGetVertexAttribfv',dll=platform.GL,344extension=EXTENSION_NAME,345resultType=None, 346argTypes=(constants.GLuint,constants.GLenum,arrays.GLfloatArray,),347doc='glGetVertexAttribfv(GLuint(index), GLenum(pname), GLfloatArray(params)) -> None',348argNames=('index','pname','params',),349deprecated=_DEPRECATED,350)351glGetVertexAttribiv = platform.createExtensionFunction( 352'glGetVertexAttribiv',dll=platform.GL,353extension=EXTENSION_NAME,354resultType=None, 355argTypes=(constants.GLuint,constants.GLenum,arrays.GLintArray,),356doc='glGetVertexAttribiv(GLuint(index), GLenum(pname), GLintArray(params)) -> None',357argNames=('index','pname','params',),358deprecated=_DEPRECATED,359)360glGetVertexAttribPointerv = platform.createExtensionFunction( 361'glGetVertexAttribPointerv',dll=platform.GL,362extension=EXTENSION_NAME,363resultType=None, 364argTypes=(constants.GLuint,constants.GLenum,ctypes.POINTER(ctypes.c_void_p),),365doc='glGetVertexAttribPointerv(GLuint(index), GLenum(pname), POINTER(ctypes.c_void_p)(pointer)) -> None',366argNames=('index','pname','pointer',),367deprecated=_DEPRECATED,368)369glIsProgram = platform.createExtensionFunction( 370'glIsProgram',dll=platform.GL,371extension=EXTENSION_NAME,372resultType=constants.GLboolean, 373argTypes=(constants.GLuint,),374doc='glIsProgram(GLuint(program)) -> constants.GLboolean',375argNames=('program',),376deprecated=_DEPRECATED,377)378glIsShader = platform.createExtensionFunction( 379'glIsShader',dll=platform.GL,380extension=EXTENSION_NAME,381resultType=constants.GLboolean, 382argTypes=(constants.GLuint,),383doc='glIsShader(GLuint(shader)) -> constants.GLboolean',384argNames=('shader',),385deprecated=_DEPRECATED,386)387glLinkProgram = platform.createExtensionFunction( 388'glLinkProgram',dll=platform.GL,389extension=EXTENSION_NAME,390resultType=None, 391argTypes=(constants.GLuint,),392doc='glLinkProgram(GLuint(program)) -> None',393argNames=('program',),394deprecated=_DEPRECATED,395)396glShaderSource = platform.createExtensionFunction( 397'glShaderSource',dll=platform.GL,398extension=EXTENSION_NAME,399resultType=None, 400argTypes=(constants.GLuint,constants.GLsizei,ctypes.POINTER( ctypes.POINTER( constants.GLchar )),arrays.GLintArray,),401doc='glShaderSource(GLuint(shader), GLsizei(count), POINTER( ctypes.POINTER( constants.GLchar ))(string), GLintArray(length)) -> None',402argNames=('shader','count','string','length',),403deprecated=_DEPRECATED,404)405glUseProgram = platform.createExtensionFunction( 406'glUseProgram',dll=platform.GL,407extension=EXTENSION_NAME,408resultType=None, 409argTypes=(constants.GLuint,),410doc='glUseProgram(GLuint(program)) -> None',411argNames=('program',),412deprecated=_DEPRECATED,413)414glUniform1f = platform.createExtensionFunction( 415'glUniform1f',dll=platform.GL,416extension=EXTENSION_NAME,417resultType=None, 418argTypes=(constants.GLint,constants.GLfloat,),419doc='glUniform1f(GLint(location), GLfloat(v0)) -> None',420argNames=('location','v0',),421deprecated=_DEPRECATED,422)423glUniform2f = platform.createExtensionFunction( 424'glUniform2f',dll=platform.GL,425extension=EXTENSION_NAME,426resultType=None, 427argTypes=(constants.GLint,constants.GLfloat,constants.GLfloat,),428doc='glUniform2f(GLint(location), GLfloat(v0), GLfloat(v1)) -> None',429argNames=('location','v0','v1',),430deprecated=_DEPRECATED,431)432glUniform3f = platform.createExtensionFunction( 433'glUniform3f',dll=platform.GL,434extension=EXTENSION_NAME,435resultType=None, 436argTypes=(constants.GLint,constants.GLfloat,constants.GLfloat,constants.GLfloat,),437doc='glUniform3f(GLint(location), GLfloat(v0), GLfloat(v1), GLfloat(v2)) -> None',438argNames=('location','v0','v1','v2',),439deprecated=_DEPRECATED,440)441glUniform4f = platform.createExtensionFunction( 442'glUniform4f',dll=platform.GL,443extension=EXTENSION_NAME,444resultType=None, 445argTypes=(constants.GLint,constants.GLfloat,constants.GLfloat,constants.GLfloat,constants.GLfloat,),446doc='glUniform4f(GLint(location), GLfloat(v0), GLfloat(v1), GLfloat(v2), GLfloat(v3)) -> None',447argNames=('location','v0','v1','v2','v3',),448deprecated=_DEPRECATED,449)450glUniform1i = platform.createExtensionFunction( 451'glUniform1i',dll=platform.GL,452extension=EXTENSION_NAME,453resultType=None, 454argTypes=(constants.GLint,constants.GLint,),455doc='glUniform1i(GLint(location), GLint(v0)) -> None',456argNames=('location','v0',),457deprecated=_DEPRECATED,458)459glUniform2i = platform.createExtensionFunction( 460'glUniform2i',dll=platform.GL,461extension=EXTENSION_NAME,462resultType=None, 463argTypes=(constants.GLint,constants.GLint,constants.GLint,),464doc='glUniform2i(GLint(location), GLint(v0), GLint(v1)) -> None',465argNames=('location','v0','v1',),466deprecated=_DEPRECATED,467)468glUniform3i = platform.createExtensionFunction( 469'glUniform3i',dll=platform.GL,470extension=EXTENSION_NAME,471resultType=None, 472argTypes=(constants.GLint,constants.GLint,constants.GLint,constants.GLint,),473doc='glUniform3i(GLint(location), GLint(v0), GLint(v1), GLint(v2)) -> None',474argNames=('location','v0','v1','v2',),475deprecated=_DEPRECATED,476)477glUniform4i = platform.createExtensionFunction( 478'glUniform4i',dll=platform.GL,479extension=EXTENSION_NAME,480resultType=None, 481argTypes=(constants.GLint,constants.GLint,constants.GLint,constants.GLint,constants.GLint,),482doc='glUniform4i(GLint(location), GLint(v0), GLint(v1), GLint(v2), GLint(v3)) -> None',483argNames=('location','v0','v1','v2','v3',),484deprecated=_DEPRECATED,485)486glUniform1fv = platform.createExtensionFunction( 487'glUniform1fv',dll=platform.GL,488extension=EXTENSION_NAME,489resultType=None, 490argTypes=(constants.GLint,constants.GLsizei,arrays.GLfloatArray,),491doc='glUniform1fv(GLint(location), GLsizei(count), GLfloatArray(value)) -> None',492argNames=('location','count','value',),493deprecated=_DEPRECATED,494)495glUniform2fv = platform.createExtensionFunction( 496'glUniform2fv',dll=platform.GL,497extension=EXTENSION_NAME,498resultType=None, 499argTypes=(constants.GLint,constants.GLsizei,arrays.GLfloatArray,),500doc='glUniform2fv(GLint(location), GLsizei(count), GLfloatArray(value)) -> None',501argNames=('location','count','value',),502deprecated=_DEPRECATED,503)504glUniform3fv = platform.createExtensionFunction( 505'glUniform3fv',dll=platform.GL,506extension=EXTENSION_NAME,507resultType=None, 508argTypes=(constants.GLint,constants.GLsizei,arrays.GLfloatArray,),509doc='glUniform3fv(GLint(location), GLsizei(count), GLfloatArray(value)) -> None',510argNames=('location','count','value',),511deprecated=_DEPRECATED,512)513glUniform4fv = platform.createExtensionFunction( 514'glUniform4fv',dll=platform.GL,515extension=EXTENSION_NAME,516resultType=None, 517argTypes=(constants.GLint,constants.GLsizei,arrays.GLfloatArray,),518doc='glUniform4fv(GLint(location), GLsizei(count), GLfloatArray(value)) -> None',519argNames=('location','count','value',),520deprecated=_DEPRECATED,521)522glUniform1iv = platform.createExtensionFunction( 523'glUniform1iv',dll=platform.GL,524extension=EXTENSION_NAME,525resultType=None, 526argTypes=(constants.GLint,constants.GLsizei,arrays.GLintArray,),527doc='glUniform1iv(GLint(location), GLsizei(count), GLintArray(value)) -> None',528argNames=('location','count','value',),529deprecated=_DEPRECATED,530)531glUniform2iv = platform.createExtensionFunction( 532'glUniform2iv',dll=platform.GL,533extension=EXTENSION_NAME,534resultType=None, 535argTypes=(constants.GLint,constants.GLsizei,arrays.GLintArray,),536doc='glUniform2iv(GLint(location), GLsizei(count), GLintArray(value)) -> None',537argNames=('location','count','value',),538deprecated=_DEPRECATED,539)540glUniform3iv = platform.createExtensionFunction( 541'glUniform3iv',dll=platform.GL,542extension=EXTENSION_NAME,543resultType=None, 544argTypes=(constants.GLint,constants.GLsizei,arrays.GLintArray,),545doc='glUniform3iv(GLint(location), GLsizei(count), GLintArray(value)) -> None',546argNames=('location','count','value',),547deprecated=_DEPRECATED,548)549glUniform4iv = platform.createExtensionFunction( 550'glUniform4iv',dll=platform.GL,551extension=EXTENSION_NAME,552resultType=None, 553argTypes=(constants.GLint,constants.GLsizei,arrays.GLintArray,),554doc='glUniform4iv(GLint(location), GLsizei(count), GLintArray(value)) -> None',555argNames=('location','count','value',),556deprecated=_DEPRECATED,557)558glUniformMatrix2fv = platform.createExtensionFunction( 559'glUniformMatrix2fv',dll=platform.GL,560extension=EXTENSION_NAME,561resultType=None, 562argTypes=(constants.GLint,constants.GLsizei,constants.GLboolean,arrays.GLfloatArray,),563doc='glUniformMatrix2fv(GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value)) -> None',564argNames=('location','count','transpose','value',),565deprecated=_DEPRECATED,566)567glUniformMatrix3fv = platform.createExtensionFunction( 568'glUniformMatrix3fv',dll=platform.GL,569extension=EXTENSION_NAME,570resultType=None, 571argTypes=(constants.GLint,constants.GLsizei,constants.GLboolean,arrays.GLfloatArray,),572doc='glUniformMatrix3fv(GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value)) -> None',573argNames=('location','count','transpose','value',),574deprecated=_DEPRECATED,575)576glUniformMatrix4fv = platform.createExtensionFunction( 577'glUniformMatrix4fv',dll=platform.GL,578extension=EXTENSION_NAME,579resultType=None, 580argTypes=(constants.GLint,constants.GLsizei,constants.GLboolean,arrays.GLfloatArray,),581doc='glUniformMatrix4fv(GLint(location), GLsizei(count), GLboolean(transpose), GLfloatArray(value)) -> None',582argNames=('location','count','transpose','value',),583deprecated=_DEPRECATED,584)585glValidateProgram = platform.createExtensionFunction( 586'glValidateProgram',dll=platform.GL,587extension=EXTENSION_NAME,588resultType=None, 589argTypes=(constants.GLuint,),590doc='glValidateProgram(GLuint(program)) -> None',591argNames=('program',),592deprecated=_DEPRECATED,593)594glVertexAttrib1d = platform.createExtensionFunction( 595'glVertexAttrib1d',dll=platform.GL,596extension=EXTENSION_NAME,597resultType=None, 598argTypes=(constants.GLuint,constants.GLdouble,),599doc='glVertexAttrib1d(GLuint(index), GLdouble(x)) -> None',600argNames=('index','x',),601deprecated=_DEPRECATED,602)603glVertexAttrib1dv = platform.createExtensionFunction( 604'glVertexAttrib1dv',dll=platform.GL,605extension=EXTENSION_NAME,606resultType=None, 607argTypes=(constants.GLuint,arrays.GLdoubleArray,),608doc='glVertexAttrib1dv(GLuint(index), GLdoubleArray(v)) -> None',609argNames=('index','v',),610deprecated=_DEPRECATED,611)612glVertexAttrib1f = platform.createExtensionFunction( 613'glVertexAttrib1f',dll=platform.GL,614extension=EXTENSION_NAME,615resultType=None, 616argTypes=(constants.GLuint,constants.GLfloat,),617doc='glVertexAttrib1f(GLuint(index), GLfloat(x)) -> None',618argNames=('index','x',),619deprecated=_DEPRECATED,620)621glVertexAttrib1fv = platform.createExtensionFunction( 622'glVertexAttrib1fv',dll=platform.GL,623extension=EXTENSION_NAME,624resultType=None, 625argTypes=(constants.GLuint,arrays.GLfloatArray,),626doc='glVertexAttrib1fv(GLuint(index), GLfloatArray(v)) -> None',627argNames=('index','v',),628deprecated=_DEPRECATED,629)630glVertexAttrib1s = platform.createExtensionFunction( 631'glVertexAttrib1s',dll=platform.GL,632extension=EXTENSION_NAME,633resultType=None, 634argTypes=(constants.GLuint,constants.GLshort,),635doc='glVertexAttrib1s(GLuint(index), GLshort(x)) -> None',636argNames=('index','x',),637deprecated=_DEPRECATED,638)639glVertexAttrib1sv = platform.createExtensionFunction( 640'glVertexAttrib1sv',dll=platform.GL,641extension=EXTENSION_NAME,642resultType=None, 643argTypes=(constants.GLuint,arrays.GLshortArray,),644doc='glVertexAttrib1sv(GLuint(index), GLshortArray(v)) -> None',645argNames=('index','v',),646deprecated=_DEPRECATED,647)648glVertexAttrib2d = platform.createExtensionFunction( 649'glVertexAttrib2d',dll=platform.GL,650extension=EXTENSION_NAME,651resultType=None, 652argTypes=(constants.GLuint,constants.GLdouble,constants.GLdouble,),653doc='glVertexAttrib2d(GLuint(index), GLdouble(x), GLdouble(y)) -> None',654argNames=('index','x','y',),655deprecated=_DEPRECATED,656)657glVertexAttrib2dv = platform.createExtensionFunction( 658'glVertexAttrib2dv',dll=platform.GL,659extension=EXTENSION_NAME,660resultType=None, 661argTypes=(constants.GLuint,arrays.GLdoubleArray,),662doc='glVertexAttrib2dv(GLuint(index), GLdoubleArray(v)) -> None',663argNames=('index','v',),664deprecated=_DEPRECATED,665)666glVertexAttrib2f = platform.createExtensionFunction( 667'glVertexAttrib2f',dll=platform.GL,668extension=EXTENSION_NAME,669resultType=None, 670argTypes=(constants.GLuint,constants.GLfloat,constants.GLfloat,),671doc='glVertexAttrib2f(GLuint(index), GLfloat(x), GLfloat(y)) -> None',672argNames=('index','x','y',),673deprecated=_DEPRECATED,674)675glVertexAttrib2fv = platform.createExtensionFunction( 676'glVertexAttrib2fv',dll=platform.GL,677extension=EXTENSION_NAME,678resultType=None, 679argTypes=(constants.GLuint,arrays.GLfloatArray,),680doc='glVertexAttrib2fv(GLuint(index), GLfloatArray(v)) -> None',681argNames=('index','v',),682deprecated=_DEPRECATED,683)684glVertexAttrib2s = platform.createExtensionFunction( 685'glVertexAttrib2s',dll=platform.GL,686extension=EXTENSION_NAME,687resultType=None, 688argTypes=(constants.GLuint,constants.GLshort,constants.GLshort,),689doc='glVertexAttrib2s(GLuint(index), GLshort(x), GLshort(y)) -> None',690argNames=('index','x','y',),691deprecated=_DEPRECATED,692)693glVertexAttrib2sv = platform.createExtensionFunction( 694'glVertexAttrib2sv',dll=platform.GL,695extension=EXTENSION_NAME,696resultType=None, 697argTypes=(constants.GLuint,arrays.GLshortArray,),698doc='glVertexAttrib2sv(GLuint(index), GLshortArray(v)) -> None',699argNames=('index','v',),700deprecated=_DEPRECATED,701)702glVertexAttrib3d = platform.createExtensionFunction( 703'glVertexAttrib3d',dll=platform.GL,704extension=EXTENSION_NAME,705resultType=None, 706argTypes=(constants.GLuint,constants.GLdouble,constants.GLdouble,constants.GLdouble,),707doc='glVertexAttrib3d(GLuint(index), GLdouble(x), GLdouble(y), GLdouble(z)) -> None',708argNames=('index','x','y','z',),709deprecated=_DEPRECATED,710)711glVertexAttrib3dv = platform.createExtensionFunction( 712'glVertexAttrib3dv',dll=platform.GL,713extension=EXTENSION_NAME,714resultType=None, 715argTypes=(constants.GLuint,arrays.GLdoubleArray,),716doc='glVertexAttrib3dv(GLuint(index), GLdoubleArray(v)) -> None',717argNames=('index','v',),718deprecated=_DEPRECATED,719)720glVertexAttrib3f = platform.createExtensionFunction( 721'glVertexAttrib3f',dll=platform.GL,722extension=EXTENSION_NAME,723resultType=None, 724argTypes=(constants.GLuint,constants.GLfloat,constants.GLfloat,constants.GLfloat,),725doc='glVertexAttrib3f(GLuint(index), GLfloat(x), GLfloat(y), GLfloat(z)) -> None',726argNames=('index','x','y','z',),727deprecated=_DEPRECATED,728)729glVertexAttrib3fv = platform.createExtensionFunction( 730'glVertexAttrib3fv',dll=platform.GL,731extension=EXTENSION_NAME,732resultType=None, 733argTypes=(constants.GLuint,arrays.GLfloatArray,),734doc='glVertexAttrib3fv(GLuint(index), GLfloatArray(v)) -> None',735argNames=('index','v',),736deprecated=_DEPRECATED,737)738glVertexAttrib3s = platform.createExtensionFunction( 739'glVertexAttrib3s',dll=platform.GL,740extension=EXTENSION_NAME,741resultType=None, 742argTypes=(constants.GLuint,constants.GLshort,constants.GLshort,constants.GLshort,),743doc='glVertexAttrib3s(GLuint(index), GLshort(x), GLshort(y), GLshort(z)) -> None',744argNames=('index','x','y','z',),745deprecated=_DEPRECATED,746)747glVertexAttrib3sv = platform.createExtensionFunction( 748'glVertexAttrib3sv',dll=platform.GL,749extension=EXTENSION_NAME,750resultType=None, 751argTypes=(constants.GLuint,arrays.GLshortArray,),752doc='glVertexAttrib3sv(GLuint(index), GLshortArray(v)) -> None',753argNames=('index','v',),754deprecated=_DEPRECATED,755)756glVertexAttrib4Nbv = platform.createExtensionFunction( 757'glVertexAttrib4Nbv',dll=platform.GL,758extension=EXTENSION_NAME,759resultType=None, 760argTypes=(constants.GLuint,arrays.GLbyteArray,),761doc='glVertexAttrib4Nbv(GLuint(index), GLbyteArray(v)) -> None',762argNames=('index','v',),763deprecated=_DEPRECATED,764)765glVertexAttrib4Niv = platform.createExtensionFunction( 766'glVertexAttrib4Niv',dll=platform.GL,767extension=EXTENSION_NAME,768resultType=None, 769argTypes=(constants.GLuint,arrays.GLintArray,),770doc='glVertexAttrib4Niv(GLuint(index), GLintArray(v)) -> None',771argNames=('index','v',),772deprecated=_DEPRECATED,773)774glVertexAttrib4Nsv = platform.createExtensionFunction( 775'glVertexAttrib4Nsv',dll=platform.GL,776extension=EXTENSION_NAME,777resultType=None, 778argTypes=(constants.GLuint,arrays.GLshortArray,),779doc='glVertexAttrib4Nsv(GLuint(index), GLshortArray(v)) -> None',780argNames=('index','v',),781deprecated=_DEPRECATED,782)783glVertexAttrib4Nub = platform.createExtensionFunction( 784'glVertexAttrib4Nub',dll=platform.GL,785extension=EXTENSION_NAME,786resultType=None, 787argTypes=(constants.GLuint,constants.GLubyte,constants.GLubyte,constants.GLubyte,constants.GLubyte,),788doc='glVertexAttrib4Nub(GLuint(index), GLubyte(x), GLubyte(y), GLubyte(z), GLubyte(w)) -> None',789argNames=('index','x','y','z','w',),790deprecated=_DEPRECATED,791)792glVertexAttrib4Nubv = platform.createExtensionFunction( 793'glVertexAttrib4Nubv',dll=platform.GL,794extension=EXTENSION_NAME,795resultType=None, 796argTypes=(constants.GLuint,arrays.GLubyteArray,),797doc='glVertexAttrib4Nubv(GLuint(index), GLubyteArray(v)) -> None',798argNames=('index','v',),799deprecated=_DEPRECATED,800)801glVertexAttrib4Nuiv = platform.createExtensionFunction( 802'glVertexAttrib4Nuiv',dll=platform.GL,803extension=EXTENSION_NAME,804resultType=None, 805argTypes=(constants.GLuint,arrays.GLuintArray,),806doc='glVertexAttrib4Nuiv(GLuint(index), GLuintArray(v)) -> None',807argNames=('index','v',),808deprecated=_DEPRECATED,809)810glVertexAttrib4Nusv = platform.createExtensionFunction( 811'glVertexAttrib4Nusv',dll=platform.GL,812extension=EXTENSION_NAME,813resultType=None, 814argTypes=(constants.GLuint,arrays.GLushortArray,),815doc='glVertexAttrib4Nusv(GLuint(index), GLushortArray(v)) -> None',816argNames=('index','v',),817deprecated=_DEPRECATED,818)819glVertexAttrib4bv = platform.createExtensionFunction( 820'glVertexAttrib4bv',dll=platform.GL,821extension=EXTENSION_NAME,822resultType=None, 823argTypes=(constants.GLuint,arrays.GLbyteArray,),824doc='glVertexAttrib4bv(GLuint(index), GLbyteArray(v)) -> None',825argNames=('index','v',),826deprecated=_DEPRECATED,827)828glVertexAttrib4d = platform.createExtensionFunction( 829'glVertexAttrib4d',dll=platform.GL,830extension=EXTENSION_NAME,831resultType=None, 832argTypes=(constants.GLuint,constants.GLdouble,constants.GLdouble,constants.GLdouble,constants.GLdouble,),833doc='glVertexAttrib4d(GLuint(index), GLdouble(x), GLdouble(y), GLdouble(z), GLdouble(w)) -> None',834argNames=('index','x','y','z','w',),835deprecated=_DEPRECATED,836)837glVertexAttrib4dv = platform.createExtensionFunction( 838'glVertexAttrib4dv',dll=platform.GL,839extension=EXTENSION_NAME,840resultType=None, 841argTypes=(constants.GLuint,arrays.GLdoubleArray,),842doc='glVertexAttrib4dv(GLuint(index), GLdoubleArray(v)) -> None',843argNames=('index','v',),844deprecated=_DEPRECATED,845)846glVertexAttrib4f = platform.createExtensionFunction( 847'glVertexAttrib4f',dll=platform.GL,848extension=EXTENSION_NAME,849resultType=None, 850argTypes=(constants.GLuint,constants.GLfloat,constants.GLfloat,constants.GLfloat,constants.GLfloat,),851doc='glVertexAttrib4f(GLuint(index), GLfloat(x), GLfloat(y), GLfloat(z), GLfloat(w)) -> None',852argNames=('index','x','y','z','w',),853deprecated=_DEPRECATED,854)855glVertexAttrib4fv = platform.createExtensionFunction( 856'glVertexAttrib4fv',dll=platform.GL,857extension=EXTENSION_NAME,858resultType=None, 859argTypes=(constants.GLuint,arrays.GLfloatArray,),860doc='glVertexAttrib4fv(GLuint(index), GLfloatArray(v)) -> None',861argNames=('index','v',),862deprecated=_DEPRECATED,863)864glVertexAttrib4iv = platform.createExtensionFunction( 865'glVertexAttrib4iv',dll=platform.GL,866extension=EXTENSION_NAME,867resultType=None, 868argTypes=(constants.GLuint,arrays.GLintArray,),869doc='glVertexAttrib4iv(GLuint(index), GLintArray(v)) -> None',870argNames=('index','v',),871deprecated=_DEPRECATED,872)873glVertexAttrib4s = platform.createExtensionFunction( 874'glVertexAttrib4s',dll=platform.GL,875extension=EXTENSION_NAME,876resultType=None, 877argTypes=(constants.GLuint,constants.GLshort,constants.GLshort,constants.GLshort,constants.GLshort,),878doc='glVertexAttrib4s(GLuint(index), GLshort(x), GLshort(y), GLshort(z), GLshort(w)) -> None',879argNames=('index','x','y','z','w',),880deprecated=_DEPRECATED,881)882glVertexAttrib4sv = platform.createExtensionFunction( 883'glVertexAttrib4sv',dll=platform.GL,884extension=EXTENSION_NAME,885resultType=None, 886argTypes=(constants.GLuint,arrays.GLshortArray,),887doc='glVertexAttrib4sv(GLuint(index), GLshortArray(v)) -> None',888argNames=('index','v',),889deprecated=_DEPRECATED,890)891glVertexAttrib4ubv = platform.createExtensionFunction( 892'glVertexAttrib4ubv',dll=platform.GL,893extension=EXTENSION_NAME,894resultType=None, 895argTypes=(constants.GLuint,arrays.GLubyteArray,),896doc='glVertexAttrib4ubv(GLuint(index), GLubyteArray(v)) -> None',897argNames=('index','v',),898deprecated=_DEPRECATED,899)900glVertexAttrib4uiv = platform.createExtensionFunction( 901'glVertexAttrib4uiv',dll=platform.GL,902extension=EXTENSION_NAME,903resultType=None, 904argTypes=(constants.GLuint,arrays.GLuintArray,),905doc='glVertexAttrib4uiv(GLuint(index), GLuintArray(v)) -> None',906argNames=('index','v',),907deprecated=_DEPRECATED,908)909glVertexAttrib4usv = platform.createExtensionFunction( 910'glVertexAttrib4usv',dll=platform.GL,911extension=EXTENSION_NAME,912resultType=None, 913argTypes=(constants.GLuint,arrays.GLushortArray,),914doc='glVertexAttrib4usv(GLuint(index), GLushortArray(v)) -> None',915argNames=('index','v',),916deprecated=_DEPRECATED,917)918glVertexAttribPointer = platform.createExtensionFunction( 919'glVertexAttribPointer',dll=platform.GL,920extension=EXTENSION_NAME,921resultType=None, 922argTypes=(constants.GLuint,constants.GLint,constants.GLenum,constants.GLboolean,constants.GLsizei,ctypes.c_void_p,),923doc='glVertexAttribPointer(GLuint(index), GLint(size), GLenum(type), GLboolean(normalized), GLsizei(stride), c_void_p(pointer)) -> None',924argNames=('index','size','type','normalized','stride','pointer',),925deprecated=_DEPRECATED,926)927# import legacy entry points to allow checking for bool(entryPoint)...

Full Screen

Full Screen

deprecation_tests.py

Source:deprecation_tests.py Github

copy

Full Screen

...56 self.assertRaisesRegex(57 Exception,58 __name__ + '.decorated_func3',59 decorated_func3)60@deprecated()61def deprecated_func(foo=None):62 """Deprecated function."""63 return foo64@deprecated()65def deprecated_func_docstring(foo=None):66 """DEPRECATED. Deprecated function."""67 return foo68@deprecated69def deprecated_func2(foo=None):70 """Deprecated function."""71 return foo72@deprecated73def deprecated_func2_docstring(foo=None):74 """DEPRECATED, don't use this. Deprecated function."""75 return foo76@deprecated(instead='baz')77def deprecated_func_instead(foo=None):78 """Deprecated function."""79 return foo80@deprecated(instead='baz')81def deprecated_func_instead_docstring(foo=None):82 """DEPRECATED, don't use this. Deprecated function."""83 return foo84@deprecated()85def deprecated_func_bad_args(self):86 """Deprecated function with arg 'self'."""87 return self88@deprecate_arg('bah', 'foo')89def deprecated_func_arg(foo=None):90 """Deprecated arg 'bah'."""91 return foo92@deprecated93def deprecated_func_docstring_arg(foo=None):94 """@param foo: Foo. DEPRECATED."""95 return foo96@deprecated97def deprecated_func_docstring_arg2(foo=None):98 """99 DEPRECATED.100 @param foo: Foo. DEPRECATED.101 """102 return foo103@deprecated_args(bah='foo')104def deprecated_func_arg2(foo=None):105 """Test deprecated_args with one rename."""106 return foo107@deprecated_args(bah='foo', silent=False, loud=True, old=None)108def deprecated_func_arg3(foo=None):109 """Test deprecated_args with three drops and one rename."""110 return foo111@remove_last_args(['foo', 'bar'])112def deprecated_all():113 """Test remove_last_args with all args removed."""114 return None115@remove_last_args(['bar'])116def deprecated_all2(foo):117 """Test remove_last_args with one arg removed."""118 return foo119class DeprecatedMethodClass(object):120 """Class with methods deprecated."""121 @classmethod122 @deprecated()123 def class_method(cls, foo=None):124 """Deprecated class method."""125 return foo126 @staticmethod127 @deprecated()128 def static_method(foo=None):129 """Deprecated static method."""130 return foo131 @deprecated()132 def instance_method(self, foo=None):133 """Deprecated instance method."""134 self.foo = foo135 return foo136 @deprecated137 def instance_method2(self, foo=None):138 """Another deprecated instance method."""139 self.foo = foo140 return foo141 def undecorated_method(self, foo=None):142 """Not deprecated instance method."""143 return foo144 @deprecate_arg('bah', 'foo')145 def deprecated_instance_method_arg(self, foo=None):146 """Instance method with deprecated parameters."""147 self.foo = foo148 return foo149 @deprecate_arg('bah', 'foo')150 @deprecate_arg('bah2', 'foo2')151 @deprecate_arg('bah3', 'foo3')152 @deprecate_arg('bah4', 'foo4')153 def deprecated_instance_method_args(self, foo, foo2, foo3=None, foo4=None):154 """Method with many decorators to verify wrapping depth formula."""155 self.foo = foo156 self.foo2 = foo2157 return (foo, foo2)158 @deprecated_args(bah='foo', bah2='foo2')159 def deprecated_instance_method_args_multi(self, foo, foo2):160 """Instance method with multiple deprecated parameters."""161 self.foo = foo162 self.foo2 = foo2163 return (foo, foo2)164 @deprecated()165 @deprecate_arg('bah', 'foo')166 def deprecated_instance_method_and_arg(self, foo):167 """Deprecated instance method with deprecated parameters."""168 self.foo = foo169 return foo170 @deprecate_arg('bah', 'foo')171 @deprecated()172 def deprecated_instance_method_and_arg2(self, foo):173 """Deprecating decorators in reverse order."""174 self.foo = foo175 return foo176 @remove_last_args(['foo', 'bar'])177 def deprecated_all(self):178 """Deprecating positional parameters."""179 return None180 @remove_last_args(['bar'])181 def deprecated_all2(self, foo):182 """Deprecating last positional parameter."""183 return foo184@deprecated()185class DeprecatedClassNoInit(object):186 """Deprecated class."""187 pass188@deprecated()189class DeprecatedClass(object):190 """Deprecated class."""191 def __init__(self, foo=None):192 """Constructor."""193 self.foo = foo194class DeprecatorTestCase(DeprecationTestCase):195 """Test cases for deprecation tools."""196 net = False197 def test_deprecated_function_zero_arg(self):198 """Test @deprecated with functions, with zero arguments."""199 rv = deprecated_func()200 self.assertEqual(rv, None)201 self.assertOneDeprecationParts(__name__ + '.deprecated_func')202 def test_deprecated_function(self):...

Full Screen

Full Screen

deprecation_test.py

Source:deprecation_test.py Github

copy

Full Screen

...27 msg="%s is not a superset of %s." % (actual_set, expected_subset))28 def test_deprecated_illegal_args(self):29 instructions = "This is how you update..."30 with self.assertRaisesRegexp(ValueError, "date"):31 deprecation.deprecated(None, instructions)32 with self.assertRaisesRegexp(ValueError, "date"):33 deprecation.deprecated("", instructions)34 with self.assertRaisesRegexp(ValueError, "YYYY-MM-DD"):35 deprecation.deprecated("07-04-2016", instructions)36 date = "2016-07-04"37 with self.assertRaisesRegexp(ValueError, "instructions"):38 deprecation.deprecated(date, None)39 with self.assertRaisesRegexp(ValueError, "instructions"):40 deprecation.deprecated(date, "")41 @tf.test.mock.patch.object(logging, "warning", autospec=True)42 def test_static_fn_with_doc(self, mock_warning):43 date = "2016-07-04"44 instructions = "This is how you update..."45 @deprecation.deprecated(date, instructions)46 def _fn(arg0, arg1):47 """fn doc.48 Args:49 arg0: Arg 0.50 arg1: Arg 1.51 Returns:52 Sum of args.53 """54 return arg0 + arg155 # Assert function docs are properly updated.56 self.assertEqual("_fn", _fn.__name__)57 self.assertEqual(58 "fn doc. (deprecated)"59 "\n"60 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."61 "\nInstructions for updating:\n%s"62 "\n"63 "\n Args:"64 "\n arg0: Arg 0."65 "\n arg1: Arg 1."66 "\n"67 "\n Returns:"68 "\n Sum of args."69 "\n " % (date, instructions),70 _fn.__doc__)71 # Assert calling new fn issues log warning.72 self.assertEqual(3, _fn(1, 2))73 self.assertEqual(1, mock_warning.call_count)74 (args, _) = mock_warning.call_args75 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")76 self._assert_subset(set([date, instructions]), set(args[1:]))77 @tf.test.mock.patch.object(logging, "warning", autospec=True)78 def test_static_fn_with_one_line_doc(self, mock_warning):79 date = "2016-07-04"80 instructions = "This is how you update..."81 @deprecation.deprecated(date, instructions)82 def _fn(arg0, arg1):83 """fn doc."""84 return arg0 + arg185 # Assert function docs are properly updated.86 self.assertEqual("_fn", _fn.__name__)87 self.assertEqual(88 "fn doc. (deprecated)"89 "\n"90 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."91 "\nInstructions for updating:\n%s" % (date, instructions),92 _fn.__doc__)93 # Assert calling new fn issues log warning.94 self.assertEqual(3, _fn(1, 2))95 self.assertEqual(1, mock_warning.call_count)96 (args, _) = mock_warning.call_args97 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")98 self._assert_subset(set([date, instructions]), set(args[1:]))99 @tf.test.mock.patch.object(logging, "warning", autospec=True)100 def test_static_fn_no_doc(self, mock_warning):101 date = "2016-07-04"102 instructions = "This is how you update..."103 @deprecation.deprecated(date, instructions)104 def _fn(arg0, arg1):105 return arg0 + arg1106 # Assert function docs are properly updated.107 self.assertEqual("_fn", _fn.__name__)108 self.assertEqual(109 "DEPRECATED FUNCTION"110 "\n"111 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."112 "\nInstructions for updating:"113 "\n%s" % (date, instructions),114 _fn.__doc__)115 # Assert calling new fn issues log warning.116 self.assertEqual(3, _fn(1, 2))117 self.assertEqual(1, mock_warning.call_count)118 (args, _) = mock_warning.call_args119 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")120 self._assert_subset(set([date, instructions]), set(args[1:]))121 @tf.test.mock.patch.object(logging, "warning", autospec=True)122 def test_instance_fn_with_doc(self, mock_warning):123 date = "2016-07-04"124 instructions = "This is how you update..."125 class _Object(object):126 def __init(self):127 pass128 @deprecation.deprecated(date, instructions)129 def _fn(self, arg0, arg1):130 """fn doc.131 Args:132 arg0: Arg 0.133 arg1: Arg 1.134 Returns:135 Sum of args.136 """137 return arg0 + arg1138 # Assert function docs are properly updated.139 self.assertEqual(140 "fn doc. (deprecated)"141 "\n"142 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."143 "\nInstructions for updating:\n%s"144 "\n"145 "\n Args:"146 "\n arg0: Arg 0."147 "\n arg1: Arg 1."148 "\n"149 "\n Returns:"150 "\n Sum of args."151 "\n " % (date, instructions),152 getattr(_Object, "_fn").__doc__)153 # Assert calling new fn issues log warning.154 self.assertEqual(3, _Object()._fn(1, 2))155 self.assertEqual(1, mock_warning.call_count)156 (args, _) = mock_warning.call_args157 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")158 self._assert_subset(set([date, instructions]), set(args[1:]))159 @tf.test.mock.patch.object(logging, "warning", autospec=True)160 def test_instance_fn_with_one_line_doc(self, mock_warning):161 date = "2016-07-04"162 instructions = "This is how you update..."163 class _Object(object):164 def __init(self):165 pass166 @deprecation.deprecated(date, instructions)167 def _fn(self, arg0, arg1):168 """fn doc."""169 return arg0 + arg1170 # Assert function docs are properly updated.171 self.assertEqual(172 "fn doc. (deprecated)"173 "\n"174 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."175 "\nInstructions for updating:\n%s" % (date, instructions),176 getattr(_Object, "_fn").__doc__)177 # Assert calling new fn issues log warning.178 self.assertEqual(3, _Object()._fn(1, 2))179 self.assertEqual(1, mock_warning.call_count)180 (args, _) = mock_warning.call_args181 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")182 self._assert_subset(set([date, instructions]), set(args[1:]))183 @tf.test.mock.patch.object(logging, "warning", autospec=True)184 def test_instance_fn_no_doc(self, mock_warning):185 date = "2016-07-04"186 instructions = "This is how you update..."187 class _Object(object):188 def __init(self):189 pass190 @deprecation.deprecated(date, instructions)191 def _fn(self, arg0, arg1):192 return arg0 + arg1193 # Assert function docs are properly updated.194 self.assertEqual(195 "DEPRECATED FUNCTION"196 "\n"197 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."198 "\nInstructions for updating:"199 "\n%s" % (date, instructions),200 getattr(_Object, "_fn").__doc__)201 # Assert calling new fn issues log warning.202 self.assertEqual(3, _Object()._fn(1, 2))203 self.assertEqual(1, mock_warning.call_count)204 (args, _) = mock_warning.call_args205 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")206 self._assert_subset(set([date, instructions]), set(args[1:]))207 def test_prop_wrong_order(self):208 with self.assertRaisesRegexp(209 ValueError,210 "make sure @property appears before @deprecated in your source code"):211 # pylint: disable=unused-variable212 class _Object(object):213 def __init(self):214 pass215 @deprecation.deprecated("2016-07-04", "Instructions.")216 @property217 def _prop(self):218 return "prop_wrong_order"219 @tf.test.mock.patch.object(logging, "warning", autospec=True)220 def test_prop_with_doc(self, mock_warning):221 date = "2016-07-04"222 instructions = "This is how you update..."223 class _Object(object):224 def __init(self):225 pass226 @property227 @deprecation.deprecated(date, instructions)228 def _prop(self):229 """prop doc.230 Returns:231 String.232 """233 return "prop_with_doc"234 # Assert function docs are properly updated.235 self.assertEqual(236 "prop doc. (deprecated)"237 "\n"238 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."239 "\nInstructions for updating:"240 "\n%s"241 "\n"242 "\n Returns:"243 "\n String."244 "\n " % (date, instructions),245 getattr(_Object, "_prop").__doc__)246 # Assert calling new fn issues log warning.247 self.assertEqual("prop_with_doc", _Object()._prop)248 self.assertEqual(1, mock_warning.call_count)249 (args, _) = mock_warning.call_args250 self.assertRegexpMatches(args[0], r"deprecated and will be removed after")251 self._assert_subset(set([date, instructions]), set(args[1:]))252 @tf.test.mock.patch.object(logging, "warning", autospec=True)253 def test_prop_no_doc(self, mock_warning):254 date = "2016-07-04"255 instructions = "This is how you update..."256 class _Object(object):257 def __init(self):258 pass259 @property260 @deprecation.deprecated(date, instructions)261 def _prop(self):262 return "prop_no_doc"263 # Assert function docs are properly updated.264 self.assertEqual(265 "DEPRECATED FUNCTION"266 "\n"267 "\nTHIS FUNCTION IS DEPRECATED. It will be removed after %s."268 "\nInstructions for updating:"269 "\n%s" % (date, instructions),270 getattr(_Object, "_prop").__doc__)271 # Assert calling new fn issues log warning.272 self.assertEqual("prop_no_doc", _Object()._prop)273 self.assertEqual(1, mock_warning.call_count)274 (args, _) = mock_warning.call_args...

Full Screen

Full Screen

test_deprecations.py

Source:test_deprecations.py Github

copy

Full Screen

...27 warnings.filterwarnings("always", message=self.message,28 category=DeprecationWarning)29 def tearDown(self):30 self.warn_ctx.__exit__()31 def assert_deprecated(self, function, num=1, ignore_others=False,32 function_fails=False,33 exceptions=(DeprecationWarning,), args=(), kwargs={}):34 """Test if DeprecationWarnings are given and raised.35 This first checks if the function when called gives `num`36 DeprecationWarnings, after that it tries to raise these37 DeprecationWarnings and compares them with `exceptions`.38 The exceptions can be different for cases where this code path39 is simply not anticipated and the exception is replaced.40 Parameters41 ----------42 f : callable43 The function to test44 num : int45 Number of DeprecationWarnings to expect. This should normally be 1.46 ignore_other : bool47 Whether warnings of the wrong type should be ignored (note that48 the message is not checked)49 function_fails : bool50 If the function would normally fail, setting this will check for51 warnings inside a try/except block.52 exceptions : Exception or tuple of Exceptions53 Exception to expect when turning the warnings into an error.54 The default checks for DeprecationWarnings. If exceptions is55 empty the function is expected to run successfull.56 args : tuple57 Arguments for `f`58 kwargs : dict59 Keyword arguments for `f`60 """61 # reset the log62 self.log[:] = []63 try:64 function(*args, **kwargs)65 except (Exception if function_fails else tuple()):66 pass67 # just in case, clear the registry68 num_found = 069 for warning in self.log:70 if warning.category is DeprecationWarning:71 num_found += 172 elif not ignore_others:73 raise AssertionError("expected DeprecationWarning but %s given"74 % warning.category)75 if num is not None and num_found != num:76 raise AssertionError("%i warnings found but %i expected"77 % (len(self.log), num))78 with warnings.catch_warnings():79 warnings.filterwarnings("error", message=self.message,80 category=DeprecationWarning)81 try:82 function(*args, **kwargs)83 if exceptions != tuple():84 raise AssertionError("No error raised during function call")85 except exceptions:86 if exceptions == tuple():87 raise AssertionError("Error raised during function call")88 def assert_not_deprecated(self, function, args=(), kwargs={}):89 """Test if DeprecationWarnings are given and raised.90 This is just a shorthand for:91 self.assert_deprecated(function, num=0, ignore_others=True,92 exceptions=tuple(), args=args, kwargs=kwargs)93 """94 self.assert_deprecated(function, num=0, ignore_others=True,95 exceptions=tuple(), args=args, kwargs=kwargs)96class TestFloatNonIntegerArgumentDeprecation(_DeprecationTestCase):97 """98 These test that ``DeprecationWarning`` is given when you try to use99 non-integers as arguments to for indexing and slicing e.g. ``a[0.0:5]``100 and ``a[0.5]``, or other functions like ``array.reshape(1., -1)``.101 After deprecation, changes need to be done inside conversion_utils.c102 in PyArray_PyIntAsIntp and possibly PyArray_IntpConverter.103 In iterators.c the function slice_GetIndices could be removed in favor104 of its python equivalent and in mapping.c the function _tuple_of_integers105 can be simplified (if ``np.array([1]).__index__()`` is also deprecated).106 As for the deprecation time-frame: via Ralf Gommers,107 "Hard to put that as a version number, since we don't know if the108 version after 1.8 will be 6 months or 2 years after. I'd say 2109 years is reasonable."110 I interpret this to mean 2 years after the 1.8 release. Possibly111 giving a PendingDeprecationWarning before that (which is visible112 by default)113 """114 message = "using a non-integer number instead of an integer " \115 "will result in an error in the future"116 def test_indexing(self):117 a = np.array([[[5]]])118 def assert_deprecated(*args, **kwargs):119 self.assert_deprecated(*args, exceptions=(IndexError,), **kwargs)120 assert_deprecated(lambda: a[0.0])121 assert_deprecated(lambda: a[0, 0.0])122 assert_deprecated(lambda: a[0.0, 0])123 assert_deprecated(lambda: a[0.0,:])124 assert_deprecated(lambda: a[:, 0.0])125 assert_deprecated(lambda: a[:, 0.0,:])126 assert_deprecated(lambda: a[0.0,:,:])127 assert_deprecated(lambda: a[0, 0, 0.0])128 assert_deprecated(lambda: a[0.0, 0, 0])129 assert_deprecated(lambda: a[0, 0.0, 0])130 assert_deprecated(lambda: a[-1.4])131 assert_deprecated(lambda: a[0, -1.4])132 assert_deprecated(lambda: a[-1.4, 0])133 assert_deprecated(lambda: a[-1.4,:])134 assert_deprecated(lambda: a[:, -1.4])135 assert_deprecated(lambda: a[:, -1.4,:])136 assert_deprecated(lambda: a[-1.4,:,:])137 assert_deprecated(lambda: a[0, 0, -1.4])138 assert_deprecated(lambda: a[-1.4, 0, 0])139 assert_deprecated(lambda: a[0, -1.4, 0])140 # Test that the slice parameter deprecation warning doesn't mask141 # the scalar index warning.142 assert_deprecated(lambda: a[0.0:, 0.0], num=2)143 assert_deprecated(lambda: a[0.0:, 0.0,:], num=2)144 def test_valid_indexing(self):145 a = np.array([[[5]]])146 assert_not_deprecated = self.assert_not_deprecated147 assert_not_deprecated(lambda: a[np.array([0])])148 assert_not_deprecated(lambda: a[[0, 0]])149 assert_not_deprecated(lambda: a[:, [0, 0]])150 assert_not_deprecated(lambda: a[:, 0,:])151 assert_not_deprecated(lambda: a[:,:,:])152 def test_slicing(self):153 a = np.array([[5]])154 def assert_deprecated(*args, **kwargs):155 self.assert_deprecated(*args, exceptions=(IndexError,), **kwargs)156 # start as float.157 assert_deprecated(lambda: a[0.0:])158 assert_deprecated(lambda: a[0:, 0.0:2])159 assert_deprecated(lambda: a[0.0::2, :0])160 assert_deprecated(lambda: a[0.0:1:2,:])161 assert_deprecated(lambda: a[:, 0.0:])162 # stop as float.163 assert_deprecated(lambda: a[:0.0])164 assert_deprecated(lambda: a[:0, 1:2.0])165 assert_deprecated(lambda: a[:0.0:2, :0])166 assert_deprecated(lambda: a[:0.0,:])167 assert_deprecated(lambda: a[:, 0:4.0:2])168 # step as float.169 assert_deprecated(lambda: a[::1.0])170 assert_deprecated(lambda: a[0:, :2:2.0])171 assert_deprecated(lambda: a[1::4.0, :0])172 assert_deprecated(lambda: a[::5.0,:])173 assert_deprecated(lambda: a[:, 0:4:2.0])174 # mixed.175 assert_deprecated(lambda: a[1.0:2:2.0], num=2)176 assert_deprecated(lambda: a[1.0::2.0], num=2)177 assert_deprecated(lambda: a[0:, :2.0:2.0], num=2)178 assert_deprecated(lambda: a[1.0:1:4.0, :0], num=2)179 assert_deprecated(lambda: a[1.0:5.0:5.0,:], num=3)180 assert_deprecated(lambda: a[:, 0.4:4.0:2.0], num=3)181 # should still get the DeprecationWarning if step = 0.182 assert_deprecated(lambda: a[::0.0], function_fails=True)183 def test_valid_slicing(self):184 a = np.array([[[5]]])185 assert_not_deprecated = self.assert_not_deprecated186 assert_not_deprecated(lambda: a[::])187 assert_not_deprecated(lambda: a[0:])188 assert_not_deprecated(lambda: a[:2])189 assert_not_deprecated(lambda: a[0:2])190 assert_not_deprecated(lambda: a[::2])191 assert_not_deprecated(lambda: a[1::2])192 assert_not_deprecated(lambda: a[:2:2])193 assert_not_deprecated(lambda: a[1:2:2])194 def test_non_integer_argument_deprecations(self):195 a = np.array([[5]])196 self.assert_deprecated(np.reshape, args=(a, (1., 1., -1)), num=2)197 self.assert_deprecated(np.reshape, args=(a, (np.array(1.), -1)))198 self.assert_deprecated(np.take, args=(a, [0], 1.))199 self.assert_deprecated(np.take, args=(a, [0], np.float64(1.)))200 def test_non_integer_sequence_multiplication(self):201 # Numpy scalar sequence multiply should not work with non-integers202 def mult(a, b):203 return a * b204 self.assert_deprecated(mult, args=([1], np.float_(3)))205 self.assert_not_deprecated(mult, args=([1], np.int_(3)))206 def test_reduce_axis_float_index(self):207 d = np.zeros((3,3,3))208 self.assert_deprecated(np.min, args=(d, 0.5))209 self.assert_deprecated(np.min, num=1, args=(d, (0.5, 1)))210 self.assert_deprecated(np.min, num=1, args=(d, (1, 2.2)))211 self.assert_deprecated(np.min, num=2, args=(d, (.2, 1.2)))212class TestBooleanArgumentDeprecation(_DeprecationTestCase):213 """This tests that using a boolean as integer argument/indexing is214 deprecated.215 This should be kept in sync with TestFloatNonIntegerArgumentDeprecation216 and like it is handled in PyArray_PyIntAsIntp.217 """218 message = "using a boolean instead of an integer " \219 "will result in an error in the future"220 def test_bool_as_int_argument(self):221 a = np.array([[[1]]])222 self.assert_deprecated(np.reshape, args=(a, (True, -1)))223 self.assert_deprecated(np.reshape, args=(a, (np.bool_(True), -1)))224 # Note that operator.index(np.array(True)) does not work, a boolean225 # array is thus also deprecated, but not with the same message:226 assert_raises(TypeError, operator.index, np.array(True))227 self.assert_deprecated(np.take, args=(a, [0], False))228 self.assert_deprecated(lambda: a[False:True:True], exceptions=IndexError, num=3)229 self.assert_deprecated(lambda: a[False, 0], exceptions=IndexError)230 self.assert_deprecated(lambda: a[False, 0, 0], exceptions=IndexError)231class TestArrayToIndexDeprecation(_DeprecationTestCase):232 """This tests that creating an an index from an array is deprecated233 if the array is not 0d.234 This can probably be deprecated somewhat faster then the integer235 deprecations. The deprecation period started with NumPy 1.8.236 For deprecation this needs changing of array_index in number.c237 """238 message = "converting an array with ndim \> 0 to an index will result " \239 "in an error in the future"240 def test_array_to_index_deprecation(self):241 # This drops into the non-integer deprecation, which is ignored here,242 # so no exception is expected. The raising is effectively tested above.243 a = np.array([[[1]]])244 self.assert_deprecated(operator.index, args=(np.array([1]),))245 self.assert_deprecated(np.reshape, args=(a, (a, -1)), exceptions=())246 self.assert_deprecated(np.take, args=(a, [0], a), exceptions=())247 # Check slicing. Normal indexing checks arrays specifically.248 self.assert_deprecated(lambda: a[a:a:a], exceptions=(), num=3)249class TestNonIntegerArrayLike(_DeprecationTestCase):250 """Tests that array likes, i.e. lists give a deprecation warning251 when they cannot be safely cast to an integer.252 """253 message = "non integer \(and non boolean\) array-likes will not be " \254 "accepted as indices in the future"255 def test_basic(self):256 a = np.arange(10)257 self.assert_deprecated(a.__getitem__, args=([0.5, 1.5],),258 exceptions=IndexError)259 self.assert_deprecated(a.__getitem__, args=((['1', '2'],),),260 exceptions=IndexError)261 self.assert_not_deprecated(a.__getitem__, ([],))262 def test_boolean_futurewarning(self):263 a = np.arange(10)264 with warnings.catch_warnings():265 warnings.filterwarnings('always')266 assert_warns(FutureWarning, a.__getitem__, [True])267 # Unfortunatly, the deprecation warning takes precedence:268 #assert_warns(FutureWarning, a.__getitem__, True)269 with warnings.catch_warnings():270 warnings.filterwarnings('error')271 assert_raises(FutureWarning, a.__getitem__, [True])272 #assert_raises(FutureWarning, a.__getitem__, True)273class TestMultipleEllipsisDeprecation(_DeprecationTestCase):274 message = "an index can only have a single Ellipsis \(`...`\); replace " \275 "all but one with slices \(`:`\)."276 def test_basic(self):277 a = np.arange(10)278 self.assert_deprecated(a.__getitem__, args=((Ellipsis, Ellipsis),))279 with warnings.catch_warnings():280 warnings.filterwarnings('ignore', '', DeprecationWarning)281 # Just check that this works:282 b = a[...,...]283 assert_array_equal(a, b)284 assert_raises(IndexError, a.__getitem__, ((Ellipsis, ) * 3,))285class TestBooleanSubtractDeprecations(_DeprecationTestCase):286 """Test deprecation of boolean `-`. While + and * are well287 defined, - is not and even a corrected form seems to have288 no real uses.289 The deprecation process was started in NumPy 1.9.290 """291 message = r"numpy boolean .* \(the .* `-` operator\) is deprecated, " \292 "use the bitwise"293 def test_operator_deprecation(self):294 array = np.array([True])295 generic = np.bool_(True)296 # Minus operator/subtract ufunc:297 self.assert_deprecated(operator.sub, args=(array, array))298 self.assert_deprecated(operator.sub, args=(generic, generic))299 # Unary minus/negative ufunc:300 self.assert_deprecated(operator.neg, args=(array,))301 self.assert_deprecated(operator.neg, args=(generic,))302class TestRankDeprecation(_DeprecationTestCase):303 """Test that np.rank is deprecated. The function should simply be304 removed. The VisibleDeprecationWarning may become unnecessary.305 """306 def test(self):307 a = np.arange(10)308 assert_warns(np.VisibleDeprecationWarning, np.rank, a)309class TestComparisonDepreactions(_DeprecationTestCase):310 """This tests the deprecation, for non-elementwise comparison logic.311 This used to mean that when an error occured during element-wise comparison312 (i.e. broadcasting) NotImplemented was returned, but also in the comparison313 itself, False was given instead of the error.314 Also test FutureWarning for the None comparison.315 """316 message = "elementwise comparison failed; " \317 "this will raise the error in the future."318 def test_normal_types(self):319 for op in (operator.eq, operator.ne):320 # Broadcasting errors:321 self.assert_deprecated(op, args=(np.zeros(3), []))322 a = np.zeros(3, dtype='i,i')323 # (warning is issued a couple of times here)324 self.assert_deprecated(op, args=(a, a[:-1]), num=None)325 # Element comparison error (numpy array can't be compared).326 a = np.array([1, np.array([1,2,3])], dtype=object)327 b = np.array([1, np.array([1,2,3])], dtype=object)328 self.assert_deprecated(op, args=(a, b), num=None)329 def test_string(self):330 # For two string arrays, strings always raised the broadcasting error:331 a = np.array(['a', 'b'])332 b = np.array(['a', 'b', 'c'])333 assert_raises(ValueError, lambda x, y: x == y, a, b)334 # The empty list is not cast to string, this is only to document335 # that fact (it likely should be changed). This means that the336 # following works (and returns False) due to dtype mismatch:337 a == []338 def test_none_comparison(self):339 # Test comparison of None, which should result in elementwise340 # comparison in the future. [1, 2] == None should be [False, False].341 with warnings.catch_warnings():342 warnings.filterwarnings('always', '', FutureWarning)343 assert_warns(FutureWarning, operator.eq, np.arange(3), None)344 assert_warns(FutureWarning, operator.ne, np.arange(3), None)345 with warnings.catch_warnings():346 warnings.filterwarnings('error', '', FutureWarning)347 assert_raises(FutureWarning, operator.eq, np.arange(3), None)348 assert_raises(FutureWarning, operator.ne, np.arange(3), None)349 def test_scalar_none_comparison(self):350 # Scalars should still just return false and not give a warnings.351 with warnings.catch_warnings(record=True) as w:352 warnings.filterwarnings('always', '', FutureWarning)353 assert_(not np.float32(1) == None)354 assert_(not np.str_('test') == None)355 # This is dubious (see below):356 assert_(not np.datetime64('NaT') == None)357 assert_(np.float32(1) != None)358 assert_(np.str_('test') != None)359 # This is dubious (see below):360 assert_(np.datetime64('NaT') != None)361 assert_(len(w) == 0)362 # For documentaiton purpose, this is why the datetime is dubious.363 # At the time of deprecation this was no behaviour change, but364 # it has to be considered when the deprecations is done.365 assert_(np.equal(np.datetime64('NaT'), None))366class TestIdentityComparisonDepreactions(_DeprecationTestCase):367 """This tests the equal and not_equal object ufuncs identity check368 deprecation. This was due to the usage of PyObject_RichCompareBool.369 This tests that for example for `a = np.array([np.nan], dtype=object)`370 `a == a` it is warned that False and not `np.nan is np.nan` is returned.371 Should be kept in sync with TestComparisonDepreactions and new tests372 added when the deprecation is over. Requires only removing of @identity@373 (and blocks) from the ufunc loops.c.src of the OBJECT comparisons.374 """375 message = "numpy .* will not check object identity in the future."376 def test_identity_equality_mismatch(self):377 a = np.array([np.nan], dtype=object)378 with warnings.catch_warnings():379 warnings.filterwarnings('always', '', FutureWarning)380 assert_warns(FutureWarning, np.equal, a, a)381 assert_warns(FutureWarning, np.not_equal, a, a)382 with warnings.catch_warnings():383 warnings.filterwarnings('error', '', FutureWarning)384 assert_raises(FutureWarning, np.equal, a, a)385 assert_raises(FutureWarning, np.not_equal, a, a)386 # And the other do not warn:387 with np.errstate(invalid='ignore'):388 np.less(a, a)389 np.greater(a, a)390 np.less_equal(a, a)391 np.greater_equal(a, a)392 def test_comparison_error(self):393 class FunkyType(object):394 def __eq__(self, other):395 raise TypeError("I won't compare")396 def __ne__(self, other):397 raise TypeError("I won't compare")398 a = np.array([FunkyType()])399 self.assert_deprecated(np.equal, args=(a, a))400 self.assert_deprecated(np.not_equal, args=(a, a))401 def test_bool_error(self):402 # The comparison result cannot be interpreted as a bool403 a = np.array([np.array([1, 2, 3]), None], dtype=object)404 self.assert_deprecated(np.equal, args=(a, a))405 self.assert_deprecated(np.not_equal, args=(a, a))406if __name__ == "__main__":...

Full Screen

Full Screen

half_float.py

Source:half_float.py Github

copy

Full Screen

1'''OpenGL extension NV.half_float2Automatically generated by the get_gl_extensions script, do not edit!3'''4from OpenGL import platform, constants, constant, arrays5from OpenGL import extensions6from OpenGL.GL import glget7import ctypes8EXTENSION_NAME = 'GL_NV_half_float'9_DEPRECATED = False10GL_HALF_FLOAT_NV = constant.Constant( 'GL_HALF_FLOAT_NV', 0x140B )11glVertex2hNV = platform.createExtensionFunction( 12'glVertex2hNV',dll=platform.GL,13extension=EXTENSION_NAME,14resultType=None, 15argTypes=(constants.GLhalfNV,constants.GLhalfNV,),16doc='glVertex2hNV(GLhalfNV(x), GLhalfNV(y)) -> None',17argNames=('x','y',),18deprecated=_DEPRECATED,19)20glVertex2hvNV = platform.createExtensionFunction( 21'glVertex2hvNV',dll=platform.GL,22extension=EXTENSION_NAME,23resultType=None, 24argTypes=(arrays.GLushortArray,),25doc='glVertex2hvNV(GLushortArray(v)) -> None',26argNames=('v',),27deprecated=_DEPRECATED,28)29glVertex3hNV = platform.createExtensionFunction( 30'glVertex3hNV',dll=platform.GL,31extension=EXTENSION_NAME,32resultType=None, 33argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),34doc='glVertex3hNV(GLhalfNV(x), GLhalfNV(y), GLhalfNV(z)) -> None',35argNames=('x','y','z',),36deprecated=_DEPRECATED,37)38glVertex3hvNV = platform.createExtensionFunction( 39'glVertex3hvNV',dll=platform.GL,40extension=EXTENSION_NAME,41resultType=None, 42argTypes=(arrays.GLushortArray,),43doc='glVertex3hvNV(GLushortArray(v)) -> None',44argNames=('v',),45deprecated=_DEPRECATED,46)47glVertex4hNV = platform.createExtensionFunction( 48'glVertex4hNV',dll=platform.GL,49extension=EXTENSION_NAME,50resultType=None, 51argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),52doc='glVertex4hNV(GLhalfNV(x), GLhalfNV(y), GLhalfNV(z), GLhalfNV(w)) -> None',53argNames=('x','y','z','w',),54deprecated=_DEPRECATED,55)56glVertex4hvNV = platform.createExtensionFunction( 57'glVertex4hvNV',dll=platform.GL,58extension=EXTENSION_NAME,59resultType=None, 60argTypes=(arrays.GLushortArray,),61doc='glVertex4hvNV(GLushortArray(v)) -> None',62argNames=('v',),63deprecated=_DEPRECATED,64)65glNormal3hNV = platform.createExtensionFunction( 66'glNormal3hNV',dll=platform.GL,67extension=EXTENSION_NAME,68resultType=None, 69argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),70doc='glNormal3hNV(GLhalfNV(nx), GLhalfNV(ny), GLhalfNV(nz)) -> None',71argNames=('nx','ny','nz',),72deprecated=_DEPRECATED,73)74glNormal3hvNV = platform.createExtensionFunction( 75'glNormal3hvNV',dll=platform.GL,76extension=EXTENSION_NAME,77resultType=None, 78argTypes=(arrays.GLushortArray,),79doc='glNormal3hvNV(GLushortArray(v)) -> None',80argNames=('v',),81deprecated=_DEPRECATED,82)83glColor3hNV = platform.createExtensionFunction( 84'glColor3hNV',dll=platform.GL,85extension=EXTENSION_NAME,86resultType=None, 87argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),88doc='glColor3hNV(GLhalfNV(red), GLhalfNV(green), GLhalfNV(blue)) -> None',89argNames=('red','green','blue',),90deprecated=_DEPRECATED,91)92glColor3hvNV = platform.createExtensionFunction( 93'glColor3hvNV',dll=platform.GL,94extension=EXTENSION_NAME,95resultType=None, 96argTypes=(arrays.GLushortArray,),97doc='glColor3hvNV(GLushortArray(v)) -> None',98argNames=('v',),99deprecated=_DEPRECATED,100)101glColor4hNV = platform.createExtensionFunction( 102'glColor4hNV',dll=platform.GL,103extension=EXTENSION_NAME,104resultType=None, 105argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),106doc='glColor4hNV(GLhalfNV(red), GLhalfNV(green), GLhalfNV(blue), GLhalfNV(alpha)) -> None',107argNames=('red','green','blue','alpha',),108deprecated=_DEPRECATED,109)110glColor4hvNV = platform.createExtensionFunction( 111'glColor4hvNV',dll=platform.GL,112extension=EXTENSION_NAME,113resultType=None, 114argTypes=(arrays.GLushortArray,),115doc='glColor4hvNV(GLushortArray(v)) -> None',116argNames=('v',),117deprecated=_DEPRECATED,118)119glTexCoord1hNV = platform.createExtensionFunction( 120'glTexCoord1hNV',dll=platform.GL,121extension=EXTENSION_NAME,122resultType=None, 123argTypes=(constants.GLhalfNV,),124doc='glTexCoord1hNV(GLhalfNV(s)) -> None',125argNames=('s',),126deprecated=_DEPRECATED,127)128glTexCoord1hvNV = platform.createExtensionFunction( 129'glTexCoord1hvNV',dll=platform.GL,130extension=EXTENSION_NAME,131resultType=None, 132argTypes=(arrays.GLushortArray,),133doc='glTexCoord1hvNV(GLushortArray(v)) -> None',134argNames=('v',),135deprecated=_DEPRECATED,136)137glTexCoord2hNV = platform.createExtensionFunction( 138'glTexCoord2hNV',dll=platform.GL,139extension=EXTENSION_NAME,140resultType=None, 141argTypes=(constants.GLhalfNV,constants.GLhalfNV,),142doc='glTexCoord2hNV(GLhalfNV(s), GLhalfNV(t)) -> None',143argNames=('s','t',),144deprecated=_DEPRECATED,145)146glTexCoord2hvNV = platform.createExtensionFunction( 147'glTexCoord2hvNV',dll=platform.GL,148extension=EXTENSION_NAME,149resultType=None, 150argTypes=(arrays.GLushortArray,),151doc='glTexCoord2hvNV(GLushortArray(v)) -> None',152argNames=('v',),153deprecated=_DEPRECATED,154)155glTexCoord3hNV = platform.createExtensionFunction( 156'glTexCoord3hNV',dll=platform.GL,157extension=EXTENSION_NAME,158resultType=None, 159argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),160doc='glTexCoord3hNV(GLhalfNV(s), GLhalfNV(t), GLhalfNV(r)) -> None',161argNames=('s','t','r',),162deprecated=_DEPRECATED,163)164glTexCoord3hvNV = platform.createExtensionFunction( 165'glTexCoord3hvNV',dll=platform.GL,166extension=EXTENSION_NAME,167resultType=None, 168argTypes=(arrays.GLushortArray,),169doc='glTexCoord3hvNV(GLushortArray(v)) -> None',170argNames=('v',),171deprecated=_DEPRECATED,172)173glTexCoord4hNV = platform.createExtensionFunction( 174'glTexCoord4hNV',dll=platform.GL,175extension=EXTENSION_NAME,176resultType=None, 177argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),178doc='glTexCoord4hNV(GLhalfNV(s), GLhalfNV(t), GLhalfNV(r), GLhalfNV(q)) -> None',179argNames=('s','t','r','q',),180deprecated=_DEPRECATED,181)182glTexCoord4hvNV = platform.createExtensionFunction( 183'glTexCoord4hvNV',dll=platform.GL,184extension=EXTENSION_NAME,185resultType=None, 186argTypes=(arrays.GLushortArray,),187doc='glTexCoord4hvNV(GLushortArray(v)) -> None',188argNames=('v',),189deprecated=_DEPRECATED,190)191glMultiTexCoord1hNV = platform.createExtensionFunction( 192'glMultiTexCoord1hNV',dll=platform.GL,193extension=EXTENSION_NAME,194resultType=None, 195argTypes=(constants.GLenum,constants.GLhalfNV,),196doc='glMultiTexCoord1hNV(GLenum(target), GLhalfNV(s)) -> None',197argNames=('target','s',),198deprecated=_DEPRECATED,199)200glMultiTexCoord1hvNV = platform.createExtensionFunction( 201'glMultiTexCoord1hvNV',dll=platform.GL,202extension=EXTENSION_NAME,203resultType=None, 204argTypes=(constants.GLenum,arrays.GLushortArray,),205doc='glMultiTexCoord1hvNV(GLenum(target), GLushortArray(v)) -> None',206argNames=('target','v',),207deprecated=_DEPRECATED,208)209glMultiTexCoord2hNV = platform.createExtensionFunction( 210'glMultiTexCoord2hNV',dll=platform.GL,211extension=EXTENSION_NAME,212resultType=None, 213argTypes=(constants.GLenum,constants.GLhalfNV,constants.GLhalfNV,),214doc='glMultiTexCoord2hNV(GLenum(target), GLhalfNV(s), GLhalfNV(t)) -> None',215argNames=('target','s','t',),216deprecated=_DEPRECATED,217)218glMultiTexCoord2hvNV = platform.createExtensionFunction( 219'glMultiTexCoord2hvNV',dll=platform.GL,220extension=EXTENSION_NAME,221resultType=None, 222argTypes=(constants.GLenum,arrays.GLushortArray,),223doc='glMultiTexCoord2hvNV(GLenum(target), GLushortArray(v)) -> None',224argNames=('target','v',),225deprecated=_DEPRECATED,226)227glMultiTexCoord3hNV = platform.createExtensionFunction( 228'glMultiTexCoord3hNV',dll=platform.GL,229extension=EXTENSION_NAME,230resultType=None, 231argTypes=(constants.GLenum,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),232doc='glMultiTexCoord3hNV(GLenum(target), GLhalfNV(s), GLhalfNV(t), GLhalfNV(r)) -> None',233argNames=('target','s','t','r',),234deprecated=_DEPRECATED,235)236glMultiTexCoord3hvNV = platform.createExtensionFunction( 237'glMultiTexCoord3hvNV',dll=platform.GL,238extension=EXTENSION_NAME,239resultType=None, 240argTypes=(constants.GLenum,arrays.GLushortArray,),241doc='glMultiTexCoord3hvNV(GLenum(target), GLushortArray(v)) -> None',242argNames=('target','v',),243deprecated=_DEPRECATED,244)245glMultiTexCoord4hNV = platform.createExtensionFunction( 246'glMultiTexCoord4hNV',dll=platform.GL,247extension=EXTENSION_NAME,248resultType=None, 249argTypes=(constants.GLenum,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),250doc='glMultiTexCoord4hNV(GLenum(target), GLhalfNV(s), GLhalfNV(t), GLhalfNV(r), GLhalfNV(q)) -> None',251argNames=('target','s','t','r','q',),252deprecated=_DEPRECATED,253)254glMultiTexCoord4hvNV = platform.createExtensionFunction( 255'glMultiTexCoord4hvNV',dll=platform.GL,256extension=EXTENSION_NAME,257resultType=None, 258argTypes=(constants.GLenum,arrays.GLushortArray,),259doc='glMultiTexCoord4hvNV(GLenum(target), GLushortArray(v)) -> None',260argNames=('target','v',),261deprecated=_DEPRECATED,262)263glFogCoordhNV = platform.createExtensionFunction( 264'glFogCoordhNV',dll=platform.GL,265extension=EXTENSION_NAME,266resultType=None, 267argTypes=(constants.GLhalfNV,),268doc='glFogCoordhNV(GLhalfNV(fog)) -> None',269argNames=('fog',),270deprecated=_DEPRECATED,271)272glFogCoordhvNV = platform.createExtensionFunction( 273'glFogCoordhvNV',dll=platform.GL,274extension=EXTENSION_NAME,275resultType=None, 276argTypes=(arrays.GLushortArray,),277doc='glFogCoordhvNV(GLushortArray(fog)) -> None',278argNames=('fog',),279deprecated=_DEPRECATED,280)281glSecondaryColor3hNV = platform.createExtensionFunction( 282'glSecondaryColor3hNV',dll=platform.GL,283extension=EXTENSION_NAME,284resultType=None, 285argTypes=(constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),286doc='glSecondaryColor3hNV(GLhalfNV(red), GLhalfNV(green), GLhalfNV(blue)) -> None',287argNames=('red','green','blue',),288deprecated=_DEPRECATED,289)290glSecondaryColor3hvNV = platform.createExtensionFunction( 291'glSecondaryColor3hvNV',dll=platform.GL,292extension=EXTENSION_NAME,293resultType=None, 294argTypes=(arrays.GLushortArray,),295doc='glSecondaryColor3hvNV(GLushortArray(v)) -> None',296argNames=('v',),297deprecated=_DEPRECATED,298)299glVertexWeighthNV = platform.createExtensionFunction( 300'glVertexWeighthNV',dll=platform.GL,301extension=EXTENSION_NAME,302resultType=None, 303argTypes=(constants.GLhalfNV,),304doc='glVertexWeighthNV(GLhalfNV(weight)) -> None',305argNames=('weight',),306deprecated=_DEPRECATED,307)308glVertexWeighthvNV = platform.createExtensionFunction( 309'glVertexWeighthvNV',dll=platform.GL,310extension=EXTENSION_NAME,311resultType=None, 312argTypes=(arrays.GLushortArray,),313doc='glVertexWeighthvNV(GLushortArray(weight)) -> None',314argNames=('weight',),315deprecated=_DEPRECATED,316)317glVertexAttrib1hNV = platform.createExtensionFunction( 318'glVertexAttrib1hNV',dll=platform.GL,319extension=EXTENSION_NAME,320resultType=None, 321argTypes=(constants.GLuint,constants.GLhalfNV,),322doc='glVertexAttrib1hNV(GLuint(index), GLhalfNV(x)) -> None',323argNames=('index','x',),324deprecated=_DEPRECATED,325)326glVertexAttrib1hvNV = platform.createExtensionFunction( 327'glVertexAttrib1hvNV',dll=platform.GL,328extension=EXTENSION_NAME,329resultType=None, 330argTypes=(constants.GLuint,arrays.GLushortArray,),331doc='glVertexAttrib1hvNV(GLuint(index), GLushortArray(v)) -> None',332argNames=('index','v',),333deprecated=_DEPRECATED,334)335glVertexAttrib2hNV = platform.createExtensionFunction( 336'glVertexAttrib2hNV',dll=platform.GL,337extension=EXTENSION_NAME,338resultType=None, 339argTypes=(constants.GLuint,constants.GLhalfNV,constants.GLhalfNV,),340doc='glVertexAttrib2hNV(GLuint(index), GLhalfNV(x), GLhalfNV(y)) -> None',341argNames=('index','x','y',),342deprecated=_DEPRECATED,343)344glVertexAttrib2hvNV = platform.createExtensionFunction( 345'glVertexAttrib2hvNV',dll=platform.GL,346extension=EXTENSION_NAME,347resultType=None, 348argTypes=(constants.GLuint,arrays.GLushortArray,),349doc='glVertexAttrib2hvNV(GLuint(index), GLushortArray(v)) -> None',350argNames=('index','v',),351deprecated=_DEPRECATED,352)353glVertexAttrib3hNV = platform.createExtensionFunction( 354'glVertexAttrib3hNV',dll=platform.GL,355extension=EXTENSION_NAME,356resultType=None, 357argTypes=(constants.GLuint,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),358doc='glVertexAttrib3hNV(GLuint(index), GLhalfNV(x), GLhalfNV(y), GLhalfNV(z)) -> None',359argNames=('index','x','y','z',),360deprecated=_DEPRECATED,361)362glVertexAttrib3hvNV = platform.createExtensionFunction( 363'glVertexAttrib3hvNV',dll=platform.GL,364extension=EXTENSION_NAME,365resultType=None, 366argTypes=(constants.GLuint,arrays.GLushortArray,),367doc='glVertexAttrib3hvNV(GLuint(index), GLushortArray(v)) -> None',368argNames=('index','v',),369deprecated=_DEPRECATED,370)371glVertexAttrib4hNV = platform.createExtensionFunction( 372'glVertexAttrib4hNV',dll=platform.GL,373extension=EXTENSION_NAME,374resultType=None, 375argTypes=(constants.GLuint,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,constants.GLhalfNV,),376doc='glVertexAttrib4hNV(GLuint(index), GLhalfNV(x), GLhalfNV(y), GLhalfNV(z), GLhalfNV(w)) -> None',377argNames=('index','x','y','z','w',),378deprecated=_DEPRECATED,379)380glVertexAttrib4hvNV = platform.createExtensionFunction( 381'glVertexAttrib4hvNV',dll=platform.GL,382extension=EXTENSION_NAME,383resultType=None, 384argTypes=(constants.GLuint,arrays.GLushortArray,),385doc='glVertexAttrib4hvNV(GLuint(index), GLushortArray(v)) -> None',386argNames=('index','v',),387deprecated=_DEPRECATED,388)389glVertexAttribs1hvNV = platform.createExtensionFunction( 390'glVertexAttribs1hvNV',dll=platform.GL,391extension=EXTENSION_NAME,392resultType=None, 393argTypes=(constants.GLuint,constants.GLsizei,arrays.GLushortArray,),394doc='glVertexAttribs1hvNV(GLuint(index), GLsizei(n), GLushortArray(v)) -> None',395argNames=('index','n','v',),396deprecated=_DEPRECATED,397)398glVertexAttribs2hvNV = platform.createExtensionFunction( 399'glVertexAttribs2hvNV',dll=platform.GL,400extension=EXTENSION_NAME,401resultType=None, 402argTypes=(constants.GLuint,constants.GLsizei,arrays.GLushortArray,),403doc='glVertexAttribs2hvNV(GLuint(index), GLsizei(n), GLushortArray(v)) -> None',404argNames=('index','n','v',),405deprecated=_DEPRECATED,406)407glVertexAttribs3hvNV = platform.createExtensionFunction( 408'glVertexAttribs3hvNV',dll=platform.GL,409extension=EXTENSION_NAME,410resultType=None, 411argTypes=(constants.GLuint,constants.GLsizei,arrays.GLushortArray,),412doc='glVertexAttribs3hvNV(GLuint(index), GLsizei(n), GLushortArray(v)) -> None',413argNames=('index','n','v',),414deprecated=_DEPRECATED,415)416glVertexAttribs4hvNV = platform.createExtensionFunction( 417'glVertexAttribs4hvNV',dll=platform.GL,418extension=EXTENSION_NAME,419resultType=None, 420argTypes=(constants.GLuint,constants.GLsizei,arrays.GLushortArray,),421doc='glVertexAttribs4hvNV(GLuint(index), GLsizei(n), GLushortArray(v)) -> None',422argNames=('index','n','v',),423deprecated=_DEPRECATED,424)425def glInitHalfFloatNV():426 '''Return boolean indicating whether this extension is available'''...

Full Screen

Full Screen

deprecation.py

Source:deprecation.py Github

copy

Full Screen

...52 if len(stack) > level:53 location = stack[level]54 return '%s:%d in %s.' % (location[1], location[2], location[3])55 return '<unknown>'56def deprecated(date, instructions):57 """Decorator for marking functions or methods deprecated.58 This decorator logs a deprecation warning whenever the decorated function is59 called. It has the following format:60 <function> (from <module>) is deprecated and will be removed after <date>.61 Instructions for updating:62 <instructions>63 <function> will include the class name if it is a method.64 It also edits the docstring of the function: ' (deprecated)' is appended65 to the first line of the docstring and a deprecation notice is prepended66 to the rest of the docstring.67 Args:68 date: String. The date the function is scheduled to be removed. Must be69 ISO 8601 (YYYY-MM-DD).70 instructions: String. Instructions on how to update code using the...

Full Screen

Full Screen

test_deprecated_plugin.py

Source:test_deprecated_plugin.py Github

copy

Full Screen

...35 res.deprecated36 self.assertEqual(37 res.errorClasses,38 {DeprecatedTest: (res.deprecated, 'DEPRECATED', False)})39 def test_patched_result_handles_deprecated(self):40 res = unittest.TestResult()41 sk = Deprecated()42 sk.prepareTestResult(res)43 class TC(unittest.TestCase):44 def test(self):45 raise DeprecatedTest('deprecated me')46 test = TC('test')47 test(res)48 assert not res.errors, "Deprecated was not caught: %s" % res.errors49 assert res.deprecated50 assert res.deprecated[0][0] is test51 def test_patches_only_when_needed(self):52 class NoPatch(unittest.TestResult):53 def __init__(self):...

Full Screen

Full Screen

test_subscribers.py

Source:test_subscribers.py Github

copy

Full Screen

...39 def assertLog(self, class_, expected):40 from OFS.subscribers import maybeWarnDeprecated41 maybeWarnDeprecated(class_(), 'manage_afterAdd')42 self.assertEquals(expected, self.logfile.getvalue())43 def test_method_deprecated(self):44 class Deprecated(object):45 def manage_afterAdd(self):46 pass47 manage_afterAdd.__five_method__ = True48 self.assertLog(Deprecated, '')49 def test_class_deprecated(self):50 class Deprecated(object):51 def manage_afterAdd(self):52 pass53 self.deprecatedManageAddDeleteClasses.append(Deprecated)54 self.assertLog(Deprecated, '')55 def test_subclass_deprecated(self):56 class Deprecated(object):57 def manage_afterAdd(self):58 pass59 class ASubClass(Deprecated):60 pass61 self.deprecatedManageAddDeleteClasses.append(Deprecated)62 self.assertLog(ASubClass, '')63 def test_not_deprecated(self):64 class Deprecated(object):65 def manage_afterAdd(self):66 pass67 self.assertLog(68 Deprecated,69 'OFS.tests.test_subscribers.Deprecated.manage_afterAdd is '70 'discouraged. You should use event subscribers instead.\n')71 def test_not_deprecated_when_there_are_no_classes(self):72 class Deprecated(object):73 def manage_afterAdd(self):74 pass75 self.deprecatedManageAddDeleteClasses[:] = []...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const stryker = require('stryker-parent');2const stryker = require('stryker');3const stryker = require('stryker');4const stryker = require('stryker-parent');5const stryker = require('stryker');6const stryker = require('stryker-parent');7const stryker = require('stryker-parent');8const stryker = require('stryker');9const stryker = require('stryker-parent');10const stryker = require('stryker');11const stryker = require('stryker');12const stryker = require('stryker-parent');13const stryker = require('stryker');14const stryker = require('stryker-parent');15const stryker = require('stryker-parent');16const stryker = require('stryker');17const stryker = require('stryker-parent');18const stryker = require('stryker');19const stryker = require('stryker');20const stryker = require('stryker-parent');21const stryker = require('stryker');22const stryker = require('stryker-parent');23const stryker = require('stryker-parent');24const stryker = require('stryker');25const stryker = require('stryker-parent');26const stryker = require('stryker');27const stryker = require('stryker');28const stryker = require('stryker-parent');

Full Screen

Using AI Code Generation

copy

Full Screen

1import { Deprecated } from 'stryker-parent';2Deprecated.doSomething();3export const Deprecated = {4 doSomething: function() {5 console.log('deprecated');6 }7}8{9}10export declare const Deprecated: {11 doSomething: () => void;12}13{14 "compilerOptions": {15 },16}17{18 "scripts": {19 }20}

Full Screen

Using AI Code Generation

copy

Full Screen

1const { getLogger } = require('stryker-parent');2const log = getLogger('test');3log.warn('this is a warning');4const { getLogger } = require('stryker-logging');5const log = getLogger('test');6log.warn('this is a warning');7const { getLogger } = require('stryker-logging');8const log = getLogger('test');9log.warn('this is a warning');10const { getLogger } = require('stryker-logging');11const log = getLogger('test');12log.warn('this is a warning');13const { getLogger } = require('stryker-logging');14const log = getLogger('test');15log.warn('this is a warning');16const { getLogger } = require('stryker-logging');17const log = getLogger('test');18log.warn('this is a warning');19const { getLogger } = require('stryker-logging');20const log = getLogger('test');21log.warn('this is a warning');22const { getLogger } = require('stryker-logging');23const log = getLogger('test');24log.warn('this is a warning');25const { getLogger } = require('stryker-logging');26const log = getLogger('test');27log.warn('this is a warning');28const { getLogger } = require('stryker-logging');29const log = getLogger('test');30log.warn('this is a warning');

Full Screen

Using AI Code Generation

copy

Full Screen

1module.exports = {2 deprecated: {3 method: function() {4 }5 }6}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run stryker-parent automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful