Added cards

This commit is contained in:
Lauchmelder 2022-01-13 23:24:39 +01:00
parent 2a8b38ffc4
commit f3b4ffd75f
14 changed files with 273 additions and 8 deletions

View file

@ -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;
};