chalkboard-viewer-0.1: OpenGL based viewer for chalkboard rendered images.Source codeContentsIndex
Graphics.Chalkboard.Viewer
Portabilityghc
Stabilityunstable
MaintainerAndy Gill <andygill@ku.edu>
Description
Simple Viewer for Chalkboard Images, using OpenGL.
Synopsis
initBoardViewer :: [BoardViewerInit] -> MVar (Board RGB) -> IO ()
data BoardViewerInit
= WindowSize Int Int
| WindowPos Int Int
| PixelSize Int
| Zoom
| Background RGB
| FrameTarget Int
Documentation
initBoardViewer :: [BoardViewerInit] -> MVar (Board RGB) -> IO ()Source
initBoardViewer never returns, and must be run from the main thread. Two arguments should be provided; the inital window setup, and the MVar that will contain the Board to be displayed.
data BoardViewerInit Source
Constructors
WindowSize Int Intinitial window size
WindowPos Int Intinitial window position
PixelSize Intbig pixels; great for prototyping
Zoomdo we sample beyond the unit square (not yet supported)
Background RGBdefault background in non-zoom mode
FrameTarget Inthow many frames per second?
Produced by Haddock version 2.4.2