X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.hh;h=d2b2359f0eb4e28d09194cac40816e66dd0536a0;hp=e858093e1a44afa06b44d50dcc5eac80503855e7;hb=29e3d45f7bbbf31eadf793c41ff2b3d9c47b7539;hpb=c2321281bf12a7efaedde930422c7ddbc92080d4 diff --git a/src/Moof/Texture.hh b/src/Moof/Texture.hh index e858093..d2b2359 100644 --- a/src/Moof/Texture.hh +++ b/src/Moof/Texture.hh @@ -38,8 +38,8 @@ #include -#include #include +#include namespace Mf { @@ -50,18 +50,16 @@ class Texture : public Resource public: Texture(const std::string& name); - void bind(); - GLuint getObject(); + void bind() const; + GLuint getObject() const; - unsigned getWidth(); - unsigned getHeight(); + unsigned getWidth() const; + unsigned getHeight() const; void setMinFilter(GLuint filter); - void setMaxFilter(GLuint filter); - void setWrapU(GLuint wrap); - void setWrapV(GLuint wrap); - - void applyChanges(); + void setMagFilter(GLuint filter); + void setWrapS(GLuint wrap); + void setWrapT(GLuint wrap); static std::string getPathToResource(const std::string& name);