1
0

optimize dx11 engine

This commit is contained in:
2026-01-05 16:51:58 +08:00
parent 7110becf66
commit 52916db08f
10 changed files with 152 additions and 117 deletions

View File

@@ -15,7 +15,7 @@ namespace Basalt::Shared::Engine {
};
struct EngineConfig {
bool is_headless; ///< Whether enable headless mode (No Window created).
bool headless; ///< Whether enable headless mode (No Window created).
std::basic_string<BSCHAR> title; ///< Window title.
std::uint32_t width; ///< Window width.
std::uint32_t height; ///< Window height.
@@ -34,7 +34,11 @@ namespace Basalt::Shared::Engine {
public:
virtual void Startup(EngineConfig&& config);
virtual void Tick();
/**
* @brief
* @return True for active exit.
*/
virtual bool Tick();
virtual void Shutdown();
protected: