Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }