Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module re-exports a number of modules having to do with graphics.
- renderPoint :: Vector Float -> Scene
- renderLine :: Vector Float -> Vector Float -> Scene
- renderRectangle :: Vector Float -> Vector Float -> Scene
- renderSquare :: Vector Float -> Float -> Scene
- renderTriangle :: Vector Float -> Vector Float -> Vector Float -> Scene
- renderPolygon :: [Vector Float] -> Scene
- data Sprite = Sprite {}
- renderSprite :: Sprite -> Vector Float -> Scene
- loadSprite :: FilePath -> IO Sprite
- 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
- type Scene = IO ()
- togl :: Float -> GLfloat
- fromgl :: GLfloat -> Float
Documentation
renderPoint :: Vector Float -> Scene Source
Rendering a point.
renderPolygon :: [Vector Float] -> Scene Source
Rendering a polygon with 1-N vertecies.
A datatype to represent a
through a reference to the
TextureObject
itself and its TextureObject
.
Size
renderSprite :: Sprite -> Vector Float -> Scene Source
Performing an OpenGL call to render the
.
Sprite
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
A type synonym for a single IO () call to suggest that users should be *rendering* in render calls, and not performing other IO.