Пример #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);
 }