budnhead/BootStrap.cs

59 lines
760 B
C#

using System;
using OpenTK.Graphics.OpenGL4;
using OpenTK;
namespace nhengine
{
public class BootStrap
{
public static BootStrap _instance;
public static BootStrap instance()
{
return _instance;
}
OpenGLWindow glWindow;
Graphics graphics;
SquaredMap map;
public static void Main(string[] args){
_instance = new BootStrap();
_instance.run();
}
public BootStrap()
{
bootGraphics();
bootMap();
}
public SquaredMap SquaredMap {
get { return this.map; }
}
public void bootGraphics(){
glWindow = new OpenGLWindow();
graphics = new Graphics();
}
public void bootMap(){
map = new SquaredMap(25,25);
}
public void run(){
glWindow.MakeCurrent();
glWindow.Run(30,30);
}
}
}