vertex_hints.py :  » Development » PyObjC » trunk » pyobjc » PyOpenGL-2.0.2.01 » OpenGL » GL » PGI » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Development » PyObjC 
PyObjC » trunk » pyobjc » PyOpenGL 2.0.2.01 » OpenGL » GL » PGI » vertex_hints.py
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 []
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.