This file contains hidden or 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
| using System.Drawing; | |
| using System.Drawing.Imaging; | |
| using OpenTK.Graphics; | |
| using OpenTK.Graphics.OpenGL; | |
| using SDPixelFormat = System.Drawing.Imaging.PixelFormat; | |
| using PixelFormat = OpenTK.Graphics.OpenGL.PixelFormat; | |
| namespace RenderToBmp | |
| { |
This file contains hidden or 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 -> ()); |
This file contains hidden or 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
| var spawn; | |
| if (require('os').platform() == "win32") { | |
| spawn = function(cmd, args, opts) { | |
| var exec = require('child_process').exec; | |
| var cmdargs = args.map(function(arg){ return '"' + arg.toString().replace('"', '""') + '"'}).join(' '); | |
| var cmd = process.env.COMSPEC; | |
| var fullcmd = cmd + ' /C "' + cmdargs + '"'; | |
| exec(fullcmd, opts); | |
| } | |
| } |