Commit 9c9bdc80 authored by Philip Trettner's avatar Philip Trettner

Making GlfwApp more versatile

parent 68be07a2
This diff is collapsed.
......@@ -180,6 +180,10 @@ public:
/// Returns true iff the specified key (GLFW_...) is pressed
bool isKeyPressed(int key) const;
/// Returns true iff the app should be closed
/// Defaults to glfw window closed
bool shouldClose() const;
protected:
/// Called once GLOW is initialized. Allocated your resources and init your logic here.
virtual void init();
......@@ -218,6 +222,9 @@ protected:
/// Called when view should be reset
virtual void onResetView();
/// Blocking call that executes the complete main loop
virtual void mainLoop();
private:
void internalOnMouseButton(double x, double y, int button, int action, int mods);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment