~matobet/pyopengl/Python3

« back to all changes in this revision

Viewing changes to GL/GREMEDY/frame_terminator.py

  • Committer: matobet at gmail
  • Date: 2010-06-26 14:11:04 UTC
  • Revision ID: matobet@gmail.com-20100626141104-k011ofmltgiiu60g
Initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''OpenGL extension GREMEDY.frame_terminator
 
2
 
 
3
This module customises the behaviour of the 
 
4
OpenGL.raw.GL.GREMEDY.frame_terminator to provide a more 
 
5
Python-friendly API
 
6
 
 
7
Overview (from the spec)
 
8
        
 
9
        This extension defines a mechanism that enables marking the end 
 
10
        of render frames within the OpenGL stream.
 
11
        
 
12
        When debugging or profiling an OpenGL application, the debuggers
 
13
        and profilers needs to know when a render frame is ended. This
 
14
        is important for frame per second measurements, statistical analysis, 
 
15
        marking and clearing stream loggers logs, performance counters 
 
16
        sampling and more.
 
17
        
 
18
        When an application uses off screen buffers, the debugger / profiler
 
19
        cannot be guaranteed that the application will call a certain function at
 
20
        the end of each off-screen frame (e.g: SwapBuffers / glClear / etc). 
 
21
        This extension enables the application to notify the debugger / profiler 
 
22
        whenever a render frame is ended.
 
23
        
 
24
        This extension is mainly useful for debuggers and profilers. It is not 
 
25
        expected that standard drivers would implement this extension. The main
 
26
        point of having this extension is to allow applications to have a clean 
 
27
        way of accessing this functionality only when they are run under the 
 
28
        control of a debugger / profiler, without having to recompile or change 
 
29
        the application source code.
 
30
 
 
31
The official definition of this extension is available here:
 
32
http://www.opengl.org/registry/specs/GREMEDY/frame_terminator.txt
 
33
'''
 
34
from OpenGL import platform, constants, constant, arrays
 
35
from OpenGL import extensions, wrapper
 
36
from OpenGL.GL import glget
 
37
import ctypes
 
38
from OpenGL.raw.GL.GREMEDY.frame_terminator import *
 
39
### END AUTOGENERATED SECTION
 
 
b'\\ No newline at end of file'