- DIRECTX SDK
- Clone the repo
- Open the project
- Run
- There's a Bedxo::Application class under Application.h
- this class takes a Bedxo::AppConfig struct as ctor parameter
auto appConfig = Bedxo::AppConfig(); appConfig.Title = "Bedxo Application"; Bedxo::Application app = Bedxo::Application(appConfig);
- You have the Bedxo::Layer class to create your imgui layers
class ExampleDerivedLayer : public Bedxo::Layer { virtual void OnRender(Bedxo::Application* app) override { // your imgui code here } virtual void OnStart(Bedxo::Application* app) override { // this calls once per layer } };
- you can add this layers using the Application::AddLayer method
auto mainLayer = std::make_shared<ExampleDerivedLayer>(); app.AddLayer(mainLayer);
- call the Application::Start method (blocking call)
app.Start()
- All
auto appConfig = Bedxo::AppConfig(); appConfig.Title = "Bedxo Application"; Bedxo::Application app = Bedxo::Application(appConfig); auto mainLayer = std::make_shared<ExampleDerivedLayer>(); app.AddLayer(mainLayer); app.Start();