Пример #1
0
        private bool InitGlfw()
        {
            StoreCallbacks();

            GLFW.SetErrorCallback(_errorCallback);
            if (!GLFW.Init())
            {
                Logger.FatalS("clyde.win", "Failed to initialize GLFW!");
                return(false);
            }

            _glfwInitialized = true;
            var version = GLFW.GetVersionString();

            Logger.DebugS("clyde.win", "GLFW initialized, version: {0}.", version);

            return(true);
        }