1'''OpenGL extension OES.point_size_array 2 3This module customises the behaviour of the 4OpenGL.raw.GLES1.OES.point_size_array to provide a more 5Python-friendly API 6 7Overview (from the spec) 8 9 This extension extends how points and point sprites are rendered 10 by allowing an array of point sizes instead of a fixed input point 11 size given by PointSize. This provides flexibility for applications 12 to do particle effects. 13 14 The vertex arrays will be extended to include a point size array. 15 The point size array can be enabled/disabled via POINT_SIZE_ARRAY_OES. 16 17 The point size array, if enabled, controls the sizes used to render 18 points and point sprites. If point size array is enabled, the point 19 size defined by PointSize is ignored. The point sizes supplied in the 20 point size arrays will be the sizes used to render both points and 21 point sprites. 22 23The official definition of this extension is available here: 24http://www.opengl.org/registry/specs/OES/point_size_array.txt 25''' 26from OpenGL import platform, constant, arrays 27from OpenGL import extensions, wrapper 28import ctypes 29from OpenGL.raw.GLES1 import _types, _glgets 30from OpenGL.raw.GLES1.OES.point_size_array import * 31from OpenGL.raw.GLES1.OES.point_size_array import _EXTENSION_NAME 32 33def glInitPointSizeArrayOES(): 34 '''Return boolean indicating whether this extension is available''' 35 from OpenGL import extensions 36 return extensions.hasGLExtension( _EXTENSION_NAME ) 37 38# INPUT glPointSizePointerOES.pointer size not checked against 'type,stride' 39glPointSizePointerOES=wrapper.wrapper(glPointSizePointerOES).setInputArraySize( 40 'pointer', None 41) 42### END AUTOGENERATED SECTION