~matobet/pyopengl/Python3

« back to all changes in this revision

Viewing changes to GL/EXT/texture_snorm.py

  • Committer: matobet at gmail
  • Date: 2010-06-26 14:11:04 UTC
  • Revision ID: matobet@gmail.com-20100626141104-k011ofmltgiiu60g
Initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''OpenGL extension EXT.texture_snorm
 
2
 
 
3
This module customises the behaviour of the 
 
4
OpenGL.raw.GL.EXT.texture_snorm to provide a more 
 
5
Python-friendly API
 
6
 
 
7
Overview (from the spec)
 
8
        
 
9
        Fixed-point textures in unextended OpenGL have integer components,
 
10
        but those values are taken to represent floating-point values in
 
11
        the range [0.0,1.0]. These integer components are considered
 
12
        "unsigned normalized" integers. When such a texture is accessed by
 
13
        a shader or by fixed-function fragment processing, floating-point
 
14
        values are returned in the range [0.0,1.0].
 
15
        
 
16
        This extension provides a set of new "signed normalized" integer
 
17
        texture formats. These are taken to represent a floating-point
 
18
        value in the range [-1.0,1.0] with an exact 0.0.
 
19
 
 
20
The official definition of this extension is available here:
 
21
http://www.opengl.org/registry/specs/EXT/texture_snorm.txt
 
22
'''
 
23
from OpenGL import platform, constants, constant, arrays
 
24
from OpenGL import extensions, wrapper
 
25
from OpenGL.GL import glget
 
26
import ctypes
 
27
from OpenGL.raw.GL.EXT.texture_snorm import *
 
28
### END AUTOGENERATED SECTION
 
 
b'\\ No newline at end of file'