public void Create(int lastZedIndex) { ZedIndex = _currentZedIndex = lastZedIndex; Theme = (Theme)Activator.CreateInstance(Application.ThemeType); _graphicsContext = _graphicsDriver.CreateWindow(Title, Size); _nativeWindow = _graphicsContext.Window; NativeHandle = _graphicsContext.NativeWindowHandle; Theme.GraphicsContext = _graphicsContext; WindowManager.Add(this); EventManager.RegisterEvents(_graphicsContext.Window); }
public static IOpenGLWindow CreateWindow(INativeWindow parent, int x, int y, int width, int height) { return(Driver.CreateWindow(parent, x, y, width, height)); }