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 / VERSION / GL_1_3.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  1.1 KB  |  46 lines

  1. '''OpenGL extension VERSION.GL_1_3
  2.  
  3. This module customises the behaviour of the 
  4. OpenGL.raw.GL.VERSION.GL_1_3 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.VERSION.GL_1_3 import *
  12. ### END AUTOGENERATED SECTION
  13. from OpenGL.GL.VERSION.GL_1_3_images import *
  14.  
  15. for typ,arrayType in (
  16.     ('d',arrays.GLdoubleArray),
  17.     ('f',arrays.GLfloatArray),
  18.     ('i',arrays.GLintArray),
  19.     ('s',arrays.GLshortArray),
  20. ):
  21.     for size in (1,2,3,4):
  22.         name = 'glMultiTexCoord%(size)s%(typ)sv'%globals()
  23.         globals()[name] = arrays.setInputArraySizeType(
  24.             globals()[name],
  25.             size,
  26.             arrayType, 
  27.             'v',
  28.         )
  29.         del size,name
  30.     del typ,arrayType
  31.  
  32. for typ,arrayType in (
  33.     ('d',arrays.GLdoubleArray),
  34.     ('f',arrays.GLfloatArray),
  35. ):
  36.     for function in ('glLoadTransposeMatrix','glMultTransposeMatrix'):
  37.         name = '%s%s'%(function,typ)
  38.         globals()[name] = arrays.setInputArraySizeType(
  39.             globals()[name],
  40.             16,
  41.             arrayType, 
  42.             'm',
  43.         )
  44.         del function,name
  45.     del typ,arrayType
  46.