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
Instances
data QueryTarget
Instances
beginQuery :: QueryTarget -> QueryObject -> IO ()
endQuery :: QueryTarget -> IO ()
withQuery :: QueryTarget -> QueryObject -> IO a -> IO a
Convenience function for an exception-safe combination of beginQuery
and
endQuery
.
Conditional rendering
Constructors
QueryWait | |
QueryNoWait | |
QueryByRegionWait | |
QueryByRegionNoWait |
beginConditionalRender :: QueryObject -> ConditionalRenderMode -> IO ()
endConditionalRender :: IO ()
withConditionalRender :: QueryObject -> ConditionalRenderMode -> IO a -> IO a