added texture swapping

This commit is contained in:
Sandro Sobczyński
2020-10-31 22:14:35 +01:00
parent 885e8b4f2b
commit f9dc79caf1
6 changed files with 48 additions and 42 deletions
@@ -28,6 +28,10 @@ TextureRepository::~TextureRepository() {}
// Methods
// ----
/** Add unlinked texture.
* @param t_subfolder Relative path. Ex.: "textures/"
* @param t_name Filename without extension. Ex.: "water"
*/
MeshTexture *TextureRepository::add(char *t_subfolder, char *t_name)
{
increaseArray(texturesCount + 1);