Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module re-exports a number of modules having to do with graphics.
- newtype Render = Render (IO ())
- runRender :: Render -> IO ()
- class Renderable a where
- renderPoint :: Vector Float -> Scene
- renderRectangle :: Vector Float -> Vector Float -> Scene
- renderSquare :: Vector Float -> Float -> Scene
- data Color = Color {}
- color4f :: Float -> Float -> Float -> Float -> Scene
- color3f :: Float -> Float -> Float -> Scene
- color4i :: Int -> Int -> Int -> Int -> Scene
- color3i :: Int -> Int -> Int -> Scene
- black :: Scene
- white :: Scene
- red :: Scene
- green :: Scene
- blue :: Scene
- type Scene = SceneT ()
- fromRenderables :: Renderable a => [a] -> Scene
- renderScene :: Scene -> IO ()
- togl :: Float -> GLfloat
Documentation
A container around IO to suggest that one should perform rendering in a rendering function.
class Renderable a where Source
A class that provides an API to convert a datatype into a
.Render
Renderable Color | Changing the current OpenGL context's |
renderPoint :: Vector Float -> Scene Source
Rendering a point.
color4i :: Int -> Int -> Int -> Int -> Scene 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
fromRenderables :: Renderable a => [a] -> Scene Source
Constructing a SceneT from a list of renderables.
renderScene :: Scene -> IO () Source
Rendering a whole
(renders each Scene
from first in list to last in
list.)Element