File: vertex_hints.py

package info (click to toggle)
pyopengl 2.0.1.08-5.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,484 kB
  • ctags: 9,036
  • sloc: pascal: 64,950; xml: 28,088; ansic: 20,696; python: 19,761; tcl: 668; makefile: 240; sh: 25
file content (40 lines) | stat: -rw-r--r-- 1,604 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
40
import string
__version__ = string.split('$Revision: 1.5 $')[1]
__date__ = string.join(string.split('$Date: 2001/07/20 23:53:31 $')[1:3], ' ')
__author__ = 'Tarn Weisner Burton <twburton@users.sourceforge.net>'
__doc__ = 'http://oss.sgi.com/projects/ogl-sample/registry/PGI/vertex_hints.txt'
__api_version__ = 0x101

GL_VERTEX_DATA_HINT_PGI =                107050
GL_VERTEX_CONSISTENT_HINT_PGI =          107051
GL_MATERIAL_SIDE_HINT_PGI =              107052
GL_MAX_VERTEX_HINT_PGI =                 107053

GL_COLOR3_BIT_PGI =                   0x00010000
GL_COLOR4_BIT_PGI =                   0x00020000
GL_EDGEFLAG_BIT_PGI =                 0x00040000
GL_INDEX_BIT_PGI =                    0x00080000
GL_MAT_AMBIENT_BIT_PGI =              0x00100000
GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI =  0x00200000
GL_MAT_DIFFUSE_BIT_PGI =              0x00400000
GL_MAT_EMISSION_BIT_PGI =             0x00800000
GL_MAT_COLOR_INDEXES_BIT_PGI =        0x01000000
GL_MAT_SHININESS_BIT_PGI =            0x02000000
GL_MAT_SPECULAR_BIT_PGI =             0x04000000
GL_NORMAL_BIT_PGI =                   0x08000000
GL_TEXCOORD1_BIT_PGI =                0x10000000
GL_TEXCOORD2_BIT_PGI =                0x20000000
GL_TEXCOORD3_BIT_PGI =                0x40000000
GL_TEXCOORD4_BIT_PGI =                0x80000000
GL_VERTEX23_BIT_PGI =                 0x00000004
GL_VERTEX4_BIT_PGI =                  0x00000008


def glInitVertexHintsPGI():
	from OpenGL.GL import __has_extension
	return __has_extension("GL_PGI_vertex_hints")


def __info():
	if glInitVertexHintsPGI():
		return []