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 / multitexture.py < prev    next >
Encoding:
Python Source  |  2008-12-07  |  728 b   |  29 lines

  1. '''OpenGL extension ARB.multitexture
  2.  
  3. This module customises the behaviour of the 
  4. OpenGL.raw.GL.ARB.multitexture 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.multitexture import *
  12. ### END AUTOGENERATED SECTION
  13. for typ,arrayType in (
  14.     ('d',arrays.GLdoubleArray),
  15.     ('f',arrays.GLfloatArray),
  16.     ('i',arrays.GLintArray),
  17.     ('s',arrays.GLshortArray),
  18. ):
  19.     for size in (1,2,3,4):
  20.         name = 'glMultiTexCoord%(size)s%(typ)svARB'%globals()
  21.         globals()[name] = arrays.setInputArraySizeType(
  22.             globals()[name],
  23.             size,
  24.             arrayType, 
  25.             'v',
  26.         )
  27.         del size,name
  28.     del typ,arrayType
  29.