Safe Haskell | None |
---|
Graphics.Rendering.OpenGL.GL.QueryObjects
Contents
Description
- data QueryObject
- data QueryTarget
- marshalQueryTarget :: QueryTarget -> GLenum
- beginQuery :: QueryTarget -> QueryObject -> IO ()
- endQuery :: QueryTarget -> IO ()
- withQuery :: QueryTarget -> QueryObject -> IO a -> IO a
- queryCounterBits :: QueryTarget -> GettableStateVar GLsizei
- currentQuery :: QueryTarget -> GettableStateVar (Maybe QueryObject)
- queryResult :: QueryObject -> GettableStateVar GLuint
- queryResultAvailable :: QueryObject -> GettableStateVar Bool
- data ConditionalRenderMode
- beginConditionalRender :: QueryObject -> ConditionalRenderMode -> IO ()
- endConditionalRender :: IO ()
- withConditionalRender :: QueryObject -> ConditionalRenderMode -> IO a -> IO a
Documentation
data QueryObject Source
Instances
data QueryTarget Source
Instances
beginQuery :: QueryTarget -> QueryObject -> IO ()Source
endQuery :: QueryTarget -> IO ()Source
withQuery :: QueryTarget -> QueryObject -> IO a -> IO aSource
Convenience function for an exception-safe combination of beginQuery
and
endQuery
.
Conditional rendering
data ConditionalRenderMode Source
Constructors
QueryWait | |
QueryNoWait | |
QueryByRegionWait | |
QueryByRegionNoWait |
endConditionalRender :: IO ()Source
withConditionalRender :: QueryObject -> ConditionalRenderMode -> IO a -> IO aSource