diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-04-22 21:56:26 -0400 |
commit | a556b45abf18f1bd509daaf63b66b7d55e9fd291 (patch) | |
tree | bc9b8a2d184c12aee236e7f9f276a34b84ca552d /engine-ocean/Game/Systems/UI/UITextures/uitexture.h | |
parent | cd7c76017a12bb548036571c1ff13e551369d06d (diff) |
add engine version
Diffstat (limited to 'engine-ocean/Game/Systems/UI/UITextures/uitexture.h')
-rw-r--r-- | engine-ocean/Game/Systems/UI/UITextures/uitexture.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/engine-ocean/Game/Systems/UI/UITextures/uitexture.h b/engine-ocean/Game/Systems/UI/UITextures/uitexture.h new file mode 100644 index 0000000..53e429d --- /dev/null +++ b/engine-ocean/Game/Systems/UI/UITextures/uitexture.h @@ -0,0 +1,39 @@ +#ifndef UITEXTURE_H +#define UITEXTURE_H +#include "Graphics/global.h" +#include <GLFW/glfw3.h> + +struct Bounds2f{ + glm::vec2 min; + glm::vec2 max; +}; + +enum AspectRatio { + LAND_FIT, + LAND_FILL, + PORTRAIT_FIT, + PORTRAIT_FILL, + FIT_SCREEN +}; + +class UITexture +{ +public: + UITexture(); + virtual void draw() = 0; + virtual GLuint getTexID() = 0; + virtual glm::vec2 getPos() = 0; + virtual glm::vec2 getScale() = 0; + virtual int getHeight() = 0; + virtual int getWidth() = 0; + virtual Bounds2f getBounds() = 0; + virtual void setWindowPos(int width, int height) = 0; + virtual float getTextureRatio() = 0; + virtual float getTextureScaleAspect() = 0; + + + + +}; + +#endif // UITEXTURE_H |