コード例 #1
0
ファイル: GLView1.cs プロジェクト: Zulkir/RAVC
        public GLView1(Context context, IClientSettings settings)
            : base(context)
        {
            this.settings = settings;

            gl = new AndroidGL();
            nativeGraphicsContext = new GameViewContext(this);
            assetManager = context.Assets;
            KeepScreenOn = true;
        }
コード例 #2
0
ファイル: MyGameWindow.cs プロジェクト: Zulkir/RAVC
 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;
 }