home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / lib / site-packages / OpenGL / GL / ARB / point_parameters.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  818 b   |  25 lines

  1. '''OpenGL extension ARB.point_parameters
  2.  
  3. This module customises the behaviour of the 
  4. OpenGL.raw.GL.ARB.point_parameters to provide a more 
  5. Python-friendly API
  6. '''
  7. from OpenGL import platform, constants, constant, arrays
  8. from OpenGL import extensions, wrapper
  9. from OpenGL.GL import glget
  10. import ctypes
  11. from OpenGL.raw.GL.ARB.point_parameters import *
  12. ### END AUTOGENERATED SECTION
  13. from OpenGL.GL import glget
  14. glget.addGLGetConstant( GL_POINT_SIZE_MIN_ARB, (1,) )
  15. glget.addGLGetConstant( GL_POINT_SIZE_MAX_ARB , (1,) )
  16. glget.addGLGetConstant( GL_POINT_FADE_THRESHOLD_SIZE_ARB, (1,) )
  17. glget.addGLGetConstant( GL_POINT_DISTANCE_ATTENUATION_ARB, (3,) )
  18.  
  19. glPointParameterfvARB = arrays.setInputArraySizeType(
  20.     glPointParameterfvARB,
  21.     None, # XXX should be dependant on the pname field!
  22.     arrays.GLfloatArray, 
  23.     'params',
  24. )
  25.