Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
Graphics.UI.Gtk.OpenGL.Context
Contents
Description
OpenGL rendering context object
- data GLContext
- class GObjectClass o => GLContextClass o
- castToGLContext :: GObjectClass obj => obj -> GLContext
- data GLRenderType
- glContextNew :: GLDrawableClass gldrawable => gldrawable -> Maybe GLContext -> Bool -> GLRenderType -> IO GLContext
- glContextGetGLDrawable :: GLContext -> IO GLDrawable
- glContextGetGLConfig :: GLContext -> IO GLConfig
- glContextGetShareList :: GLContext -> IO GLContext
- glContextIsDirect :: GLContext -> IO Bool
- glContextGetRenderType :: GLContext -> IO GLRenderType
- glContextGetCurrent :: IO (Maybe GLContext)
Types
data GLContext
class GObjectClass o => GLContextClass o
Instances
castToGLContext :: GObjectClass obj => obj -> GLContext
Constructors
Arguments
:: GLDrawableClass gldrawable | |
=> gldrawable |
|
-> Maybe GLContext |
|
-> Bool |
|
-> GLRenderType |
|
-> IO GLContext |
Creates a new OpenGL rendering context.
Methods
Arguments
:: GLContext | |
-> IO GLDrawable | returns the |
Gets GLDrawable
to which the GLContext
is bound.
glContextIsDirect :: GLContext -> IO Bool
Returns whether the GLContext
is a direct rendering context.
glContextGetRenderType :: GLContext -> IO GLRenderType
Gets the GLRenderType
of the GLContext
.