|
Graphics.UI.Gtk.OpenGL.Context | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
OpenGL rendering context object
|
|
Synopsis |
|
|
|
|
Types
|
|
data GLContext |
Instances | |
|
|
class GObjectClass o => GLContextClass o |
| Instances | |
|
|
castToGLContext :: GObjectClass obj => obj -> GLContext |
|
data GLRenderType |
Constructors | | Instances | |
|
|
Constructors
|
|
glContextNew |
:: GLDrawableClass gldrawable | | => gldrawable | gldrawable - a GLDrawable.
| -> Maybe GLContext | shareList - the GLContext with which to share
display lists and texture objects. A value of
Nothing indicates that no sharing is to take place.
| -> Bool | direct - whether rendering is to be done with a
direct connection to the graphics system.
| -> GLRenderType | renderType - RGBAType or ColorIndexType
(currently not used).
| -> IO GLContext | | Creates a new OpenGL rendering context.
|
|
|
Methods
|
|
glContextGetGLDrawable |
|
|
glContextGetGLConfig :: GLContext -> IO GLConfig |
Gets the GLConfig with which the GLContext is configured.
|
|
glContextGetShareList :: GLContext -> IO GLContext |
Gets the other GLContext with which the GLContext shares the display
lists and texture objects.
|
|
glContextIsDirect :: GLContext -> IO Bool |
Returns whether the GLContext is a direct rendering context.
|
|
glContextGetRenderType :: GLContext -> IO GLRenderType |
Gets the GLRenderType of the GLContext.
|
|
glContextGetCurrent |
|
|
Produced by Haddock version 0.8 |