예제 #1
0
        public NativeRenderableSite(NativeEditorGraphicsContext context)
        {
            this.context = context;
            this.control = new GLControl(this.context.MainGraphicsMode);

            //
            // Since the GLControl will create its own context and make it the
            // current one as soon as its window handle is available, we'll
            // need to register for this happening and counter-act by making
            // the editor's main context current again.
            //
            // Otherwise, any graphics resource or operation created or performed
            // will be part of a different context and be invalid / produce
            // invalid handles.
            //
            this.control.HandleCreated += this.control_HandleCreated;
        }
예제 #2
0
        public NativeRenderableSite(NativeEditorGraphicsContext context)
        {
            this.context = context;
            this.control = new GLControl(this.context.MainGraphicsMode);

            //
            // Since the GLControl will create its own context and make it the
            // current one as soon as its window handle is available, we'll
            // need to register for this happening and counter-act by making
            // the editor's main context current again.
            //
            // Otherwise, any graphics resource or operation created or performed
            // will be part of a different context and be invalid / produce
            // invalid handles.
            //
            this.control.HandleCreated += this.control_HandleCreated;
        }
예제 #3
0
		public NativeRenderableSite(NativeEditorGraphicsContext context)
		{
			this.context = context;
			this.control = new GLControl(this.context.MainGraphicsMode);
		}
예제 #4
0
 public NativeRenderableSite(NativeEditorGraphicsContext context)
 {
     this.context = context;
     this.control = new GLControl(this.context.MainGraphicsMode);
 }