wxcore-0.10.1: wxHaskell is a portable and native GUI library for Haskell.ContentsIndex
Graphics.UI.WXCore.OpenGL
Contents
Types
Creation
Usage
Description
Synopsis
type GLCanvas a = Window (CGLCanvas a)
data GLAttribute
= GL_RGBA
| GL_BUFFER_SIZE Int
| GL_LEVEL Ordering
| GL_DOUBLEBUFFER
| GL_STEREO
| GL_AUX_BUFFERS Int
| GL_MIN_RED Int
| GL_MIN_GREEN Int
| GL_MIN_BLUE Int
| GL_MIN_ALPHA Int
| GL_DEPTH_SIZE Int
| GL_STENCIL_SIZE Int
| GL_MIN_ACCUM_RED Int
| GL_MIN_ACCUM_GREEN Int
| GL_MIN_ACCUM_BLUE Int
| GL_MIN_ACCUM_ALPHA Int
glCanvasCreateDefault :: Window a -> Style -> String -> [GLAttribute] -> IO (GLCanvas ())
glCanvasCreateEx :: Window a -> Id -> Rect -> Style -> String -> [GLAttribute] -> Palette b -> IO (GLCanvas ())
glCanvasCreateSharedEx :: Window a -> GLCanvas b -> Id -> Rect -> Style -> String -> [GLAttribute] -> Palette c -> IO (GLCanvas ())
glCanvasSetCurrent :: GLCanvas a -> IO ()
glCanvasSwapBuffers :: GLCanvas a -> IO ()
glCanvasSetColour :: GLCanvas a -> Color -> IO ()
Types
type GLCanvas a = Window (CGLCanvas a)
Pointer to an object of type GLCanvas, derived from Window.
data GLAttribute
OpenGL window (GLCanvas) attributes.
Constructors
GL_RGBAUse true colour
GL_BUFFER_SIZE IntBits for buffer if not GL_RGBA defined also
GL_LEVEL OrderingEQ for main buffer, GT for overlay, LT for underlay
GL_DOUBLEBUFFERUse doublebuffer
GL_STEREOUse stereoscopic display
GL_AUX_BUFFERS IntNumber of auxiliary buffers (not all implementation support this option)
GL_MIN_RED IntUse red buffer with at least argument bits
GL_MIN_GREEN IntUse green buffer with at least argument bits
GL_MIN_BLUE IntUse blue buffer with at least argument bits
GL_MIN_ALPHA IntUse alpha buffer with at least argument bits
GL_DEPTH_SIZE IntBits for Z-buffer (0,16,32)
GL_STENCIL_SIZE IntBits for stencil buffer
GL_MIN_ACCUM_RED IntUse red accum buffer with at least argument bits
GL_MIN_ACCUM_GREEN IntUse green buffer with at least argument bits
GL_MIN_ACCUM_BLUE IntUse blue buffer with at least argument bits
GL_MIN_ACCUM_ALPHA IntUse blue buffer with at least argument bits
Creation
glCanvasCreateDefault :: Window a -> Style -> String -> [GLAttribute] -> IO (GLCanvas ())
Create a standard openGL canvas window with a certain title and attributes.
glCanvasCreateEx :: Window a -> Id -> Rect -> Style -> String -> [GLAttribute] -> Palette b -> IO (GLCanvas ())
Create an openGL window. Use nullPalette to use the default palette.
glCanvasCreateSharedEx :: Window a -> GLCanvas b -> Id -> Rect -> Style -> String -> [GLAttribute] -> Palette c -> IO (GLCanvas ())
Create a shared openGL window. Use nullPalette to use the default palette.
Usage
glCanvasSetCurrent :: GLCanvas a -> IO ()
usage: (glCanvasSetCurrent self).
glCanvasSwapBuffers :: GLCanvas a -> IO ()
usage: (glCanvasSwapBuffers self).
glCanvasSetColour :: GLCanvas a -> Color -> IO ()
usage: (glCanvasSetColour self colour).
Produced by Haddock version 2.1.0