RedViz-0.1.0.0: a library for realtime interactive 3D visualizations
Copyright(c) Sven Panne 2013
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.RedViz.LoadShaders

Description

Utilities for shader handling, adapted from LoadShaders.cpp which is (c) The Red Book Authors.

Synopsis

Documentation

data ShaderSource Source #

The source of the shader source code.

Constructors

ByteStringSource ByteString

The shader source code is directly given as a ByteString.

StringSource String

The shader source code is directly given as a String.

FileSource FilePath

The shader source code is located in the file at the given FilePath.

data ShaderInfo Source #

A description of a shader: The type of the shader plus its source code.

loadShaders :: [ShaderInfo] -> IO Program Source #

Create a new program object from the given shaders, throwing an IOException if something goes wrong.