Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Convert milch into an application oriented library #1

Open
realstealthninja opened this issue Aug 28, 2024 · 1 comment
Open

Comments

@realstealthninja
Copy link
Owner

Currently milch operates as a library that provides one class which does everything.

instead it should really be providing Base classes that could be overridden
i.e:

#include <milch/milch.hpp>

class myApp : public milch::Application {

   void Input(Event* event) {
       // handle events here
   }

   void Update() {
      // draw things here
   }

   void Init() {
      // initalize things here

      // in the future it could even intialize widgets
      Button myButton("text", shapes::point(20, 30));
      this.add_widget(myButton);
      
   }

}

int main() {

   myApp app;
   app.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@realstealthninja and others