OpenGL-3.0.3.0: A binding for the OpenGL graphics system

Copyright(c) Sven Panne 2004-2019 Lars Corbijn 2004-2016
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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

data QueryObject Source #

Instances
Eq QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

Ord QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

Show QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

ObjectName QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

GeneratableObjectName QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

CanBeLabeled QueryObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.QueryObject

withQuery :: QueryTarget -> QueryObject -> IO a -> IO a Source #

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

Query Target Queries

Query Object Queries

class Storable a => QueryResult a Source #

Minimal complete definition

getQueryObjectv

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 GLuint64 Source #

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