Added cards
This commit is contained in:
parent
2a8b38ffc4
commit
f3b4ffd75f
14 changed files with 273 additions and 8 deletions
|
@ -1,7 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <lol/lol.hpp>
|
||||
|
||||
struct UserData
|
||||
{
|
||||
lol::OrthogonalCamera* camera;
|
||||
};
|
||||
|
||||
class Window
|
||||
{
|
||||
|
@ -12,9 +19,14 @@ public:
|
|||
inline bool IsValid() { return valid; }
|
||||
inline bool ShouldClose() { return glfwWindowShouldClose(window); }
|
||||
|
||||
void Clear();
|
||||
void Draw(lol::Drawable& drawable);
|
||||
void Display();
|
||||
|
||||
private:
|
||||
bool valid;
|
||||
GLFWwindow* window;
|
||||
UserData data;
|
||||
|
||||
lol::OrthogonalCamera camera;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue