Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module re-exports a number of modules having to do with graphics.
- renderPoint :: Vector Float -> Scene
- renderRectangle :: Vector Float -> Vector Float -> Scene
- renderSquare :: Vector Float -> Float -> Scene
- data Color = Color {}
- bindColor :: Color -> IO ()
- color4f :: Float -> Float -> Float -> Float -> Color
- color3f :: Float -> Float -> Float -> Color
- color4i :: Int -> Int -> Int -> Int -> Color
- color3i :: Int -> Int -> Int -> Color
- black :: Color
- white :: Color
- red :: Color
- green :: Color
- blue :: Color
- data Element = Element PrimitiveMode [Vector Float]
- data SceneT a = SceneT [Element] a
- type Scene = SceneT ()
- renderElement :: Element -> IO ()
- fromElements :: [Element] -> Scene
- renderScene :: Scene -> IO ()
- togl :: Float -> GLfloat
Documentation
renderPoint :: Vector Float -> Scene Source
Rendering a point.
bindColor :: Color -> IO () Source
Changes the current OpenGL context's rendering color to the
specified.Color
color4i :: Int -> Int -> Int -> Int -> Color Source
Creating a
from 4 Color
s. The ints, similarly to Int
represent red, green, blue, and the alpha mask respectively. The ints should
be in the range of 0-255. (Note: color4f
is functionally equivalent (and
also equivalent in source code) to calling color4f with each of its arguments
divided by 255.)color4i
Purely specifying the rendering behavior of a single element. To be composed
into
s for a full rendering effect.Scene
For composing a scene out of a set of elements.
renderElement :: Element -> IO () Source
Rendering a single
.Element
fromElements :: [Element] -> Scene Source
Constructing a SceneT from a list of elements.
renderScene :: Scene -> IO () Source