just a minor refactor, nothing special

This commit is contained in:
MihailRis
2024-04-23 02:00:03 +03:00
parent 6e2bc9ca95
commit 9f2bceb039
67 changed files with 143 additions and 143 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef GRAPHICS_CORE_VIEWPORT_H_
#define GRAPHICS_CORE_VIEWPORT_H_
#include <glm/glm.hpp>
#include "../../typedefs.h"
class Viewport {
uint width;
uint height;
public:
Viewport(uint width, uint height);
virtual uint getWidth() const;
virtual uint getHeight() const;
glm::ivec2 size() const {
return glm::ivec2(width, height);
}
};
#endif // GRAPHICS_VIEWPORT_H_