File: texture_env_enhanced_fixed_function.py

package info (click to toggle)
pyopengl 3.1.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,668 kB
  • sloc: python: 108,024; makefile: 4
file content (33 lines) | stat: -rw-r--r-- 1,388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'''OpenGL extension IMG.texture_env_enhanced_fixed_function

This module customises the behaviour of the 
OpenGL.raw.GLES1.IMG.texture_env_enhanced_fixed_function to provide a more 
Python-friendly API

Overview (from the spec)
	
	This extension adds new texture environment functions to allow use of 
	of blend modes supported in some early MBX-lite devices, including dot3 functionality. 
	It is superceded by OpenGL-ES 1.1 which includes tex_env_combine.
	
	New functions may be specified by calling TexEnv with the following tokens: 
	MODULATE_COLOR_IMG, RECIP_ADD_SIGNED_ALPHA_IMG, TEXTURE_ALPHA_MODULATE_IMG, 
	FACTOR_ALPHA_MODULATE_IMG, FRAGMENT_ALPHA_MODULATE_IMG, ADD_BLEND_IMG, DOT3_RGBA.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/IMG/texture_env_enhanced_fixed_function.txt
'''
from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GLES1 import _types, _glgets
from OpenGL.raw.GLES1.IMG.texture_env_enhanced_fixed_function import *
from OpenGL.raw.GLES1.IMG.texture_env_enhanced_fixed_function import _EXTENSION_NAME

def glInitTextureEnvEnhancedFixedFunctionIMG():
    '''Return boolean indicating whether this extension is available'''
    from OpenGL import extensions
    return extensions.hasGLExtension( _EXTENSION_NAME )


### END AUTOGENERATED SECTION