示例#1
0
 public void Init(GLFW.Window window)
 {
     this.window   = window;
     this.callback = new GLFW.KeyCallback(KeyCallback);
     GLFW.Glfw.SetKeyCallback(window, callback);
     current = this;
 }
示例#2
0
 public Window(int Width, int Height, string Title)
 {
     title  = Title;
     width  = Width;
     height = Height;
     WindowHint();
     WindowInstance = Glfw.CreateWindow(Width, Height, Title, Monitor.None, GLFW.Window.None);
     if (!WindowCreationCheck())
     {
         return;
     }
 }
示例#3
0
 public void Init(GLFW.Window window)
 {
     this.window = window;
     current     = this;
 }