Пример #1
0
        public Application(string name, WindowProperties properties, RenderAPI api = RenderAPI.OPENGL)
        {
            this.name       = name;
            this.properties = properties;
            this.frameTime  = 0.0f;

            instance = this;
            Context.SetRenderAPI(api);
        }
Пример #2
0
        public Window(string title, WindowProperties properties)
        {
            this.title         = title;
            this.properties    = properties;
            this.handle        = null;
            this.closed        = false;
            this.eventCallback = null;

            if (!Init())
            {
                Log.Error("Failed base Window Initialization!");
                return;
            }

            // Font Manager

            SoundManager.Init();
            inputManager = new InputManager();
        }