Haskell port of code examples from learnopengl.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
README.org
Setup.hs
awesomeface.png
basicLightingDiffuse.frag
basicLightingDiffuse.vert
basicLightingDiffuseLight.frag
cameraCircle.frag
cameraCircle.vert
cameraKeyboardDt.frag
cameraKeyboardDt.vert
cameraMouseZoom.frag
cameraMouseZoom.vert
color.frag
color.vert
container.jpg
container2.png
container2_specular.png
coordinateSystem.frag
coordinateSystem.vert
coordinateSystemDepth.frag
coordinateSystemDepth.vert
directionalLight.frag
directionalLight.vert
learnopengl-haskell.cabal
lightingMaps.frag
lightingMaps.vert
lightingMapsLight.frag
lightingScene.frag
lightingScene.vert
lightingSceneLight.frag
material.frag
material.vert
materialLight.frag
multipleLights.frag
multipleLights.vert
multipleLightsLight.frag
multipleLightsLight.vert
pointLight.frag
pointLight.vert
pointLightLight.frag
pointLightLight.vert
shader.frag
shader.vert
shaders.frag
shaders.vert
specular.frag
specular.vert
specularLight.frag
spotLight.frag
spotLight.vert
spotLightLight.frag
spotLightLight.vert
stack.yaml
texture.frag
texture.vert
textures.frag
textures.vert
transformation.frag
transformation.vert

README.md

haskell-opengl

About

A haskell port of examples from learnopengl.com.

SDL is used instead of GLFW because of personal preference.

FRP techniques might be applied for managing time-varying variables but a non-FRP version written completely in plain old monad will also be provided in the future.

Current progress

  • Hello, Triangle
    • triangle
    • rectangle
  • Shaders
    • color
    • shaders
  • Textures
    • texture
    • textures
  • Transformations
    • rotation
    • transformation
  • Coordinate Systems
    • coordinateSystem
    • coordinateSystemDepth

Build

$ stack build