Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell2010 |
OpenGL rendering surface interface
- data GLDrawable
- class GObjectClass o => GLDrawableClass o
- castToGLDrawable :: GObjectClass obj => obj -> GLDrawable
- toGLDrawable :: GLDrawableClass o => o -> GLDrawable
- glDrawableMakeCurrent :: GLDrawableClass self => self -> GLContext -> IO Bool
- glDrawableIsDoubleBuffered :: GLDrawableClass self => self -> IO Bool
- glDrawableSwapBuffers :: GLDrawableClass self => self -> IO ()
- glDrawableWaitGL :: GLDrawableClass self => self -> IO ()
- glDrawableWaitGdk :: GLDrawableClass self => self -> IO ()
- glDrawableGLBegin :: GLDrawableClass self => self -> GLContext -> IO Bool
- glDrawableGLEnd :: GLDrawableClass self => self -> IO ()
- glDrawableGetGLConfig :: GLDrawableClass self => self -> IO GLConfig
- glDrawableGetSize :: GLDrawableClass self => self -> IO (Int, Int)
- glDrawableGetCurrent :: IO (Maybe GLDrawable)
Class Hierarchy
| GObject | +----GLDrawable
Types
data GLDrawable Source #
class GObjectClass o => GLDrawableClass o Source #
castToGLDrawable :: GObjectClass obj => obj -> GLDrawable Source #
toGLDrawable :: GLDrawableClass o => o -> GLDrawable Source #
Methods
glDrawableMakeCurrent Source #
:: GLDrawableClass self | |
=> self | |
-> GLContext | |
-> IO Bool | returns |
Attach an OpenGL rendering context to a GL drawable.
glDrawableIsDoubleBuffered Source #
:: GLDrawableClass self | |
=> self | |
-> IO Bool | returns |
Returns whether the GL drawable supports the double-buffered visual.
glDrawableSwapBuffers :: GLDrawableClass self => self -> IO () Source #
Exchange front and back buffers.
glDrawableWaitGL :: GLDrawableClass self => self -> IO () Source #
Complete OpenGL execution prior to subsequent Gdk drawing calls.
glDrawableWaitGdk :: GLDrawableClass self => self -> IO () Source #
Complete Gdk drawing execution prior to subsequent OpenGL calls.
:: GLDrawableClass self | |
=> self | |
-> GLContext |
|
-> IO Bool | returns |
Delimits the begining of the OpenGL execution.
glDrawableGLEnd :: GLDrawableClass self => self -> IO () Source #
Delimits the end of the OpenGL execution.
glDrawableGetGLConfig :: GLDrawableClass self => self -> IO GLConfig Source #
Gets GLConfig
with which the GL drawable is configured.
:: GLDrawableClass self | |
=> self | |
-> IO (Int, Int) | (width, height) |
Returns the width and height of the GL drawable.
:: IO (Maybe GLDrawable) | returns the current |
Returns the current GLDrawable
.