Skip to content

IParallel/Bedxo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • DIRECTX SDK

How to build

  • Clone the repo
  • Open the project
  • Run

How to use

  • 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();

About

a library to create desktop apps with imgui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published