示例#1
0
 public MyGameWindow()
     : base(256, 256, new GraphicsMode(new ColorFormat(32), 24, 8, 4), "Object.GL Tester",
            GameWindowFlags.Default, DisplayDevice.Default)
 {
     gl                   = new DefaultGL();
     contextInfra         = new ContextInfra(Context);
     VSync                = VSyncMode.On;
     Context.SwapInterval = 1;
 }
示例#2
0
        public Context(IGL gl, IContextInfra infra)
        {
            GL    = gl;
            Infra = infra;
            Caps  = new ContextCaps(gl);

            Create   = new ContextObjectFactory(this);
            Bindings = new ContextBindings(this, Caps);
            States   = new ContextStates(this, Caps);
            Actions  = new ContextActions(this);
        }
示例#3
0
        public Context(IGL gl, IContextInfra infra)
        {
            GL = gl;
            Infra = infra;
            Caps = new ContextCaps(gl);

            Create = new ContextObjectFactory(this);
            Bindings = new ContextBindings(this, Caps);
            States = new ContextStates(this, Caps);
            Actions = new ContextActions(this);
        }