在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):madjestic/Haskell-OpenGL-Tutorial开源软件地址(OpenSource Url):https://github.com/madjestic/Haskell-OpenGL-Tutorial开源编程语言(OpenSource Language):Haskell 94.2%开源软件介绍(OpenSource Introduction):Haskell-OpenGL-Tutorialan attempt to create a concise modern Haskell OpenGL boilerplate with basic IO among other things... MandelbrotYampaA simple OpenGL application, using FRP.Yampa to handle animation and user events, SDL2 for managing windows and input, stack as a build system.
Output:Animated Output:A GLFW BoilerplateAn OpenGL template:
A GLFW Boilerplate with Mandelbrot shader
A SDL2 Boilerplate with Mandelbrot shader
HelloWindowA Hello Window OpenGL application with stack as a build system. Output:TransformationsA simple OpenGL application, drawing a polygon with texture blending, transformed by GLMatrix, using element buffer, with stack as a build system. Output:Basic Hellow WindowA Hello Window, with basic input callbacks.Drawing 2 trianglesDrawing 2 textured trianglesA colored triangleSugarizing the interface with polymorphic functions.module Main where
import NGL.Shape
import NGL.Rendering
main :: IO ()
main = do
let drawables = [toDrawable Red $ Square (-0.5, -0.5) 1.0,
toDrawable Green $ Circle (0.5, 0.5) 0.5 100,
toDrawable Blue $ Rect (-1.0,0.33) (0.0,0.66),
toDrawable White $ Polyline [ (0.0,-0.66)
,(0.33,-0.33)
,(0.66,-0.66)
,(1.0,-0.33)]
0.01
]
window <- createWindow "NGL is Not GLoss" (512,512)
drawIn Default window drawables
closeWindow window |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论