Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
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
castToGLContext :: GObjectClass obj => obj -> GLContextSource
Constructors
:: GLDrawableClass gldrawable | |
=> gldrawable |
|
-> Maybe GLContext |
|
-> Bool |
|
-> GLRenderType |
|
-> IO GLContext |
Creates a new OpenGL rendering context.
Methods
:: 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
.