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 -> Scene
- 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 SceneT a = SceneT [Element] a
- type Scene = SceneT ()
- fromElements :: [Element] -> Scene
- renderScene :: Scene -> IO ()
- togl :: Float -> GLfloat
Documentation
renderPoint :: Vector Float -> Scene Source
Rendering a point.
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
For composing a scene out of a set of elements.
SceneT [Element] a |
fromElements :: [Element] -> Scene Source
Constructing a SceneT from a list of elements.
renderScene :: Scene -> IO () Source
Rendering a whole
(renders each Scene
from first in list to last in
list.)Element