Exemple #1
0
        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);
        }
Exemple #2
0
 public static IOpenGLWindow CreateWindow(INativeWindow parent, int x, int y, int width, int height)
 {
     return(Driver.CreateWindow(parent, x, y, width, height));
 }