X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FGraphic%2FTexture.hpp;h=b47ab1cb1cb6d6c219cfe771f2747a9804bd1e6b;hp=46884478d69e5a02efec04e0840647633b5d1e55;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hpb=5fca41ab430df85d6dd620a7f4130df01bc1430f diff --git a/Source/Graphic/Texture.hpp b/Source/Graphic/Texture.hpp index 4688447..b47ab1c 100644 --- a/Source/Graphic/Texture.hpp +++ b/Source/Graphic/Texture.hpp @@ -24,9 +24,9 @@ along with Lugaru. If not, see . #include "Graphic/gamegl.hpp" #include +#include #include #include -#include class TextureRes { @@ -49,15 +49,19 @@ public: /* Make sure TextureRes never gets copied */ TextureRes(TextureRes const& other) = delete; - TextureRes & operator=(TextureRes const& other) = delete; + TextureRes& operator=(TextureRes const& other) = delete; }; class Texture { private: std::shared_ptr tex; + public: - inline Texture(): tex(nullptr) {} + inline Texture() + : tex(nullptr) + { + } void load(const string& filename, bool hasMipmap); void load(const string& filename, bool hasMipmap, GLubyte* array, int* skinsizep); void bind();