|
RenderEngine
|
#include <Texture.hpp>
Public Member Functions | |
| Texture () | |
| Default constructor. | |
| Texture (std::string filename) | |
| Constructor. | |
| Texture (int w, int h) | |
| Constructor. | |
| ~Texture () | |
| Destructor. | |
| void | bindTexture () |
| bindTexture | |
| GLuint | getTextureID () |
| bindTegetTextureIDxture | |
Basic texture represenation. Supports dds and bmp at the moment
| Texture::Texture | ( | ) |
Default constructor.
Setting up default texture.
| Texture::Texture | ( | std::string | filename | ) |
Constructor.
Setting up texture from filename.
| Texture::Texture | ( | int | w, |
| int | h | ||
| ) |
Constructor.
Setting up texture with widht and height.
| Texture::~Texture | ( | ) |
Destructor.
Clean up ressources.
| void Texture::bindTexture | ( | ) |
bindTexture
Bind our texture in Texture Unit 0.
| GLuint Texture::getTextureID | ( | ) |
bindTegetTextureIDxture
Returns the id of the texture object.