From 90f3d2ff9fe7297dae0bdcee9c441e53177a0fb7 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 3 Mar 2016 09:26:06 -0500 Subject: efficiency stuffs --- include/Texture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/Texture.h') diff --git a/include/Texture.h b/include/Texture.h index 659c32d..7201a4c 100644 --- a/include/Texture.h +++ b/include/Texture.h @@ -58,7 +58,7 @@ public: * Contains an array of the GLuints returned from Texture::loadTexture(). */ - GLuint *image = NULL; + std::vector image; /** * Populates the image array from a list of strings, with each string as a @@ -73,6 +73,7 @@ public: Texturec(uint amt,const char **paths); Texturec(std::vectorvec); + Texturec( std::initializer_list l ); /** * Frees memory taken by the image array. -- cgit v1.2.3