| Portability | portable (depends on GHC) |
|---|---|
| Stability | provisional |
| Maintainer | gtk2hs-users@lists.sourceforge.net |
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
class GObjectClass o => GLContextClass o Source
Instances
castToGLContext :: GObjectClass obj => obj -> GLContextSource
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 BoolSource
Returns whether the GLContext is a direct rendering context.
glContextGetRenderType :: GLContext -> IO GLRenderTypeSource
Gets the GLRenderType of the GLContext.