internal override void OnHostControlLoaded() { if (!isInitGLControl) { //init gl after this control is loaded //set myGLControl detail //1. windowControl.InitSetup2d(Screen.PrimaryScreen.Bounds); isInitGLControl = true; //2. windowControl.ClearColor = new OpenTK.Graphics.Color4(1f, 1f, 1f, 1f); //3. } }
internal override void OnHostControlLoaded() { if (!_isInitGLControl) { //init gl after this control is loaded //set myGLControl detail //1. var bounds = Screen.PrimaryScreen.Bounds; _windowControl.InitSetup2d(bounds.X, bounds.Y, bounds.Width, bounds.Height); _isInitGLControl = true; //2. _windowControl.ClearSurface(OpenTK.Graphics.Color4.White); //3. } }
internal override void OnHostControlLoaded() { if (!_isInitGLControl) { //init gl after this control is loaded //set myGLControl detail //1. //TODO: review here again _windowControl.InitSetup2d(0, 0, 800, 600);// Screen.PrimaryScreen.Bounds); _isInitGLControl = true; //2. //windowControl.ClearColor = new OpenTK.Graphics.Color4(1f, 1f, 1f, 1f); //3. } }