Some cleanups

This commit is contained in:
2021-01-13 19:03:47 +01:00
parent 89ae811beb
commit 0370a2e871
24 changed files with 321 additions and 237 deletions

View File

@@ -80,6 +80,21 @@ void Texture::unbind()
glBindTexture(GL_TEXTURE_2D, 0);
}
uint8_t Texture::getTextureType()
{
return textureType;
}
std::string Texture::getPath()
{
return texturePath;
}
GLuint Texture::getTextureId()
{
return textureId;
}
CubeMap::CubeMap(const char *texturePseudoPath)
{
// Reserve space in vector so that elements can be accessed explicitly.
@@ -167,3 +182,8 @@ void CubeMap::fillTexturePathVector(const char *texturePseudoPath)
texturePaths[cm_right] = std::string(texturePseudoPath) + "right.png";
}
}
GLuint CubeMap::getTextureId()
{
return textureId;
}