Created
October 11, 2016 21:36
-
-
Save WernerWenz/a5da0da2156691b5d950a7e1601d35d4 to your computer and use it in GitHub Desktop.
OpenTK F# example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open OpenTK; | |
open OpenTK.Graphics.OpenGL; | |
[<EntryPoint>] | |
let main argv = | |
let win = new GameWindow() | |
win.Load.Add(fun e -> GL.ClearColor(0.8f, 0.8f, 1.0f, 1.0f)); | |
win.Unload.Add(fun e -> ()); | |
win.RenderFrame.Add(fun e -> | |
GL.Clear(ClearBufferMask.ColorBufferBit) | |
win.SwapBuffers() | |
) | |
win.Run() | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment