forked from Misaki/GhostEngine
28 lines
554 B
C#
28 lines
554 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();
|
|
}
|
|
} |