map_buffer_range.py :  » Game-2D-3D » PyOpenGL » PyOpenGL-3.0.1 » OpenGL » GL » ARB » 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 » Game 2D 3D » PyOpenGL 
PyOpenGL » PyOpenGL 3.0.1 » OpenGL » GL » ARB » map_buffer_range.py
'''OpenGL extension ARB.map_buffer_range

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

Overview (from thespec import 
  
  ARB_map_buffer_range expands the buffer object API to allow greater
  performance when a client application only needs to write to a sub-range
  of a buffer object. To that end, this extension introduces two new buffer
  object features: non-serialized buffer modification and explicit sub-range
  flushing for mapped buffer objects.
  
  OpenGL requires that commands occur in a FIFO manner meaning that any
  changes to buffer objects either block until the data has been processed by
  the OpenGL pipeline or else create extra copies to avoid such a block.  By
  providing a method to asynchronously modify buffer object data, an
  application is then able to manage the synchronization points themselves
  and modify ranges of data contained by a buffer object even though OpenGL
  might still be using other parts of it.
  
  This extension also provides a method for explicitly flushing ranges of a
  mapped buffer object so OpenGL does not have to assume that the entire
  range may have been modified.  Further, it allows the application to more
  precisely specify its intent with respect to reading, writing, and whether
  the previous contents of a mapped range of interest need be preserved
  prior to modification.
  
  Affects ARB_vertex_buffer_object, ARB_pixel_buffer_object and OpenGL 1.5
  Buffer Objects.
  

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/map_buffer_range.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.map_buffer_range import *
### END AUTOGENERATED SECTION
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.