public static void Start(Game gameInstance) { Console.ForegroundColor = ConsoleColor.Gray; Logger.AddStickyInfo("voxaInfo", new LoggerMessage("V O X A - Lite 3D Engine v" + VERSION_MAJOR + "." + VERSION_MINOR, ConsoleColor.Cyan)); Logger.Info("Starting Voxa Engine v" + VERSION_MAJOR + "." + VERSION_MINOR); game = gameInstance; engineWindow = new EngineWindow(gameInstance.WINDOW_WIDTH, gameInstance.WINDOW_HEIGHT); renderingPool = new RenderingPool(); uniformManager = new UniformManager(); engineWindow.Run(gameInstance.TARGET_UPDATE_RATE, 0); }
public static void Start(Game gameInstance) { Console.ForegroundColor = ConsoleColor.Gray; Logger.AddStickyInfo("voxaInfo", new LoggerMessage("V O X A - Lite 3D Engine v" + VERSION_MAJOR + "." + VERSION_MINOR, ConsoleColor.Cyan)); Logger.Info("Starting Voxa Engine v" + VERSION_MAJOR + "." + VERSION_MINOR); Game = gameInstance; EngineWindow = new EngineWindow(gameInstance.Config.WindowWidth, gameInstance.Config.WindowHeight, gameInstance.Config.Fullscreen, gameInstance.Config.WindowTitle, gameInstance.Config.LockMouse); RenderingPool = new RenderingPool(); UniformManager = new UniformManager(); TaskQueue = new TaskQueue(); FontLibrary = new Library(); EngineWindow.Run(gameInstance.Config.TargetUpdateRate, 0); }