File: transform_feedback2.py

package info (click to toggle)
pyopengl 3.0.1~b2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,148 kB
  • ctags: 25,165
  • sloc: python: 26,391; sh: 4; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 2,034 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
34
35
36
37
38
39
40
41
42
43
'''OpenGL extension NV.transform_feedback2

This module customises the behaviour of the 
OpenGL.raw.GL.NV.transform_feedback2 to provide a more 
Python-friendly API

Overview (from the spec)
	
	The NV_transform_feedback and EXT_transform_feedback extensions allow
	applications to capture primitives to one or more buffer objects when
	transformed by the GL.  This extension provides a few additional
	capabilities to these extensions, making transform feedback mode
	more useful.
	
	First, it provides transform feedback objects encapsulating transform
	feedback-related state, allowing applications to replace the entire
	transform feedback configuration in a single bind call.  Second, it
	provides the ability to pause and resume transform feedback operations.
	When transform feedback is paused, applications may render without
	transform feedback or may use transform feedback with different state and
	a different transform feedback object.  When transform feedback is
	resumed, additional primitives are captured and appended to previously
	captured primitives for the object.
	
	Additionally, this extension provides the ability to draw primitives
	captured in transform feedback mode without querying the captured
	primitive count.  The command DrawTransformFeedbackNV() is equivalent to
	glDrawArrays(<mode>, 0, <count>), where <count> is the number of vertices
	captured to buffer objects during the last transform feedback capture
	operation on the transform feedback object used.  This draw operation only
	provides a vertex count -- it does not automatically set up vertex array
	state or vertex buffer object bindings, which must be done separately by
	the application.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NV/transform_feedback2.txt
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.NV.transform_feedback2 import *
### END AUTOGENERATED SECTION