Example #1
0
        public GLView1(Context context, IClientSettings settings)
            : base(context)
        {
            this.settings = settings;

            gl = new AndroidGL();
            nativeGraphicsContext = new GameViewContext(this);
            assetManager = context.Assets;
            KeepScreenOn = true;
        }
Example #2
0
 public MyGameWindow(string fileName = null)
     : base(1280, 720, new GraphicsMode(new ColorFormat(32), 24, 8, 4), "Object.GL Tester",
     GameWindowFlags.Default, DisplayDevice.Default, 4, 2, GraphicsContextFlags.Default)
 {
     this.fileName = fileName;
     gl = new GL4();
     nativeGraphicsContext = new GL4NativeGraphicsContextWrapper(Context);
     VSync = VSyncMode.On;
     Context.SwapInterval = 1;
 }