HGE2D-0.1.6.2: 2D game engine written in Haskell

Copyright(c) 2016 Martin Buck
Licensesee LICENSE
Safe HaskellNone
LanguageHaskell2010

HGE2D.GlFunctions

Description

Containing functions used to interact with OpenGL

Synopsis

Documentation

colorRGB :: GlColorRGB -> IO () Source #

Renders a RGB color

colorRGBA :: GlColorRGBA -> IO () Source #

Renders a RGBA color

addAlpha :: GLfloat -> GlColorRGB -> GlColorRGBA Source #

Adds an alpha value to a RGB color, turning it into a RGBA color

translate2 :: GlPosX -> GlPosY -> IO () Source #

Sends a translation instruction to OpenGL

scale2 :: GlScaleX -> GlScaleY -> IO () Source #

Sends a scale instruction to OpenGL

text :: String -> RenderInstruction Source #

Transforms a string to a RenderInstruction

rotate2 :: Double -> IO () Source #

Sends a rotation instruction to OpenGL

point2 :: GlPosX -> GlPosY -> GlPoint2 Source #

Builds a GLPoint2

point3 :: GlPosX -> GlPosY -> GlPosZ -> GlPoint3 Source #

Builds a GLPoint3

vertex3 :: GlPosX -> GlPosY -> GlPosZ -> GlVer3 Source #

Builds a GLVer3