OpenGL-2.9.0.0: A binding for the OpenGL graphics system

Portabilityportable
Stabilitystable
MaintainerSven Panne <svenpanne@gmail.com>
Safe HaskellNone

Graphics.Rendering.OpenGL.GL.QueryObjects

Contents

Description

This module corresponds to section 4.2 (Query Objects and Asynchronous Queries) of the OpenGL 4.4 specs.

Synopsis

Creating and Delimiting Queries

withQuery :: QueryTarget -> QueryObject -> IO a -> IO aSource

Convenience function for an exception-safe combination of beginQuery and endQuery.

Query Target Queries

Query Object Queries

Time Queries

timestampQuery :: QueryObject -> IO ()Source

Record the time after all previous commands on the GL client and server state and the framebuffer have been fully realized

timestamp :: GettableStateVar GLuint64Source

Contains the GL time after all previous commands have reached the GL server but have not yet necessarily executed.