holds all informations for a texture
Definition: Texture.h:39
std::string _path
path where texture is loaded from
Definition: Texture.h:43
bool LoadTexture(std::string path)
load texture from given path texture is bound to _id
Definition: Texture.cpp:77
static const std::string TextureTypeHeight
string with name of height map used in shader
Definition: Texture.h:52
static const std::string TextureTypeSpecular
string with name of specular map used in shader
Definition: Texture.h:51
Texture()
default constructor default constructor is needed since OpenGL Renderer Object is a global object,...
Definition: Texture.h:57
static std::vector< Texture > LoadMaterialTextures(std::vector< Texture > &loadedTexture, std::string dir, aiMaterial *aiMat, aiTextureType aiType, TextureType ttype)
loads textures from a model uses loadedTexture-parameter to skip already loaded textures
Definition: Texture.cpp:43
static const std::string TextureTypeNormal
string with name of normal map used in shader
Definition: Texture.h:50
static const std::string TextureTypeDiffuse
string with name of diffuse texture used in shader
Definition: Texture.h:49