private void Window_Loaded(object sender, RoutedEventArgs e) { gl = new GLControl(new GraphicsMode(new ColorFormat(32), 24, 8, 16, new ColorFormat(0), 2, false), 3, 3, GraphicsContextFlags.Default); renderer = new EditorRenderer(gl); gl.Load += gl_Load; winFormsHost.Child = gl; }
void OpenTab(string header, RenderableAsset asset) { gl = new GLControl(new GraphicsMode(new ColorFormat(32), 24, 8, 16, new ColorFormat(0), 2, false), 3, 3, GraphicsContextFlags.Default); renderer = new EditorRenderer(gl); winFormsHost.Child = gl; }