File: clear_buffer_object.py

package info (click to toggle)
pyopengl 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,936 kB
  • ctags: 9,720
  • sloc: python: 49,408; makefile: 3
file content (30 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download
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
'''OpenGL extension ARB.clear_buffer_object

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

Overview (from the spec)
	
	Buffer objects are fundamental to the operation of OpenGL. Buffers are used
	as a source of data for vertices and indices, read through buffer textures
	in shaders, used to transfer texture and image data into and out of
	textures and framebuffers, and may be written to by operations such as
	transform feedback. OpenGL contains mechanisms to copy sections of buffers
	from one to another, but it has no mechanism to initialize the content
	of a buffer to a known value. In effect, it has memcpy, but not memset.
	
	This extension adds such a mechanism and has several use cases. Examples
	include clearing a pixel unpack buffer before transferring data to
	a texture or resetting buffer data to a known value before sparse updates
	through shader image stores or transform feedback.

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