handa-opengl-0.1.6.1: Utility functions for OpenGL and GLUT

Copyright(c) 2015 Brian W Bush
LicenseMIT
MaintainerBrian W Bush <consult@brianwbush.info>
StabilityStable
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.Handa.Util

Contents

Description

Miscellaneous functions for OpenGL rendering.

Synopsis

Trigonometry

degree :: Floating a => a Source #

One degree of arc.

cosd :: Floating a => a -> a Source #

Cosine with its argument in degrees.

sind :: Floating a => a -> a Source #

Sine with its argument in degrees.

color4 :: ColorComponent a => (a, a, a, a) -> IO () Source #

Action for a four-component color from a tuple.

Analytic Geometry

vertex3 :: VertexComponent a => (a, a, a) -> IO () Source #

Action for a three-component vertex from a tuple.

vector3 :: (a, a, a) -> Vector3 a Source #

Construct a three-component vector from a tuple.