#include <model.hpp>
◆ Texture()
| Texture::Texture |
( |
const std::string & |
filepath, |
|
|
const aiTextureType & |
type |
|
) |
| |
Load a texture from a filepath.
- Parameters
-
| filepath | is the file path to the texture |
| type | specifies the type of texture to load. Currently only aiTextureType_SPECULAR and aiTextureType_DIFFUSE are implemented. |
◆ getID()
| unsigned int Texture::getID |
( |
| ) |
const |
- Returns
- the texture's ID to be passed into OpenGL functions
◆ getType()
| std::string Texture::getType |
( |
| ) |
const |
The documentation for this class was generated from the following files: