Refactored and reorganized the codebase to improve readability, performance, and maintainability. Introduced new interfaces and structs for better resource management, updated project configuration files, and refactored shader and graphics pipeline management. Improved error handling, code formatting, and removed unused code and namespaces. Updated DLL references and method signatures for consistency and maintainability.
28 lines
557 B
C#
28 lines
557 B
C#
using Ghost.Engine.Models;
|
|
using Ghost.Engine.Services;
|
|
|
|
namespace Ghost.Engine;
|
|
|
|
internal class EngineCore
|
|
{
|
|
public void Start(LaunchArgument args)
|
|
{
|
|
ActivationHandler.Handle(args);
|
|
|
|
GraphicsPipeline.Initialize();
|
|
GraphicsPipeline.Start();
|
|
|
|
Logger.LogInfo("Engine started successfully.");
|
|
}
|
|
|
|
public void IncrementCPUFenceValue()
|
|
{
|
|
GraphicsPipeline.SignalCPUReady();
|
|
}
|
|
|
|
public void ShutDown()
|
|
{
|
|
GraphicsPipeline.SignalCPUReady();
|
|
GraphicsPipeline.Shutdown();
|
|
}
|
|
} |