~matobet/pyopengl/Python3

« back to all changes in this revision

Viewing changes to GL/ARB/texture_compression_rgtc.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 ARB.texture_compression_rgtc
 
2
 
 
3
This module customises the behaviour of the 
 
4
OpenGL.raw.GL.ARB.texture_compression_rgtc to provide a more 
 
5
Python-friendly API
 
6
 
 
7
Overview (from the spec)
 
8
        
 
9
        This extension introduces four new block-based texture compression
 
10
        formats suited for unsigned and signed red and red-green textures
 
11
        (hence the name "rgtc" for Red-Green Texture Compression).
 
12
        
 
13
        These formats are designed to reduce the storage requirements
 
14
        and memory bandwidth required for red and red-green textures by
 
15
        a factor of 2-to-1 over conventional uncompressed luminance and
 
16
        luminance-alpha textures with 8-bit components (GL_LUMINANCE8 and
 
17
        GL_LUMINANCE8_ALPHA8).
 
18
        
 
19
        The compressed signed red-green format is reasonably suited for
 
20
        storing compressed normal maps.
 
21
        
 
22
        This extension uses the same compression format as the
 
23
        EXT_texture_compression_latc extension except the color data is stored
 
24
        in the red and green components rather than luminance and alpha.
 
25
        Representing compressed red and green components is consistent with
 
26
        the BC4 and BC5 compressed formats supported by DirectX 10.
 
27
 
 
28
The official definition of this extension is available here:
 
29
http://www.opengl.org/registry/specs/ARB/texture_compression_rgtc.txt
 
30
'''
 
31
from OpenGL import platform, constants, constant, arrays
 
32
from OpenGL import extensions, wrapper
 
33
from OpenGL.GL import glget
 
34
import ctypes
 
35
from OpenGL.raw.GL.ARB.texture_compression_rgtc import *
 
36
### END AUTOGENERATED SECTION
 
 
b'\\ No newline at end of file'