示例#1
0
 public Window(int width, int height, GraphicsMode mode, string title = "", GameWindowFlags options = GameWindowFlags.Default)
 {
     Width        = width;
     Height       = height;
     NativeWindow = new GameWindow(width, height, mode, title, options);
     _context     = new VisualContext(this);
     Initialize();
 }
示例#2
0
 public Window(int width, int height)
 {
     Width        = width;
     Height       = height;
     NativeWindow = new GameWindow(width, height);
     _context     = new VisualContext(this);
     Initialize();
 }