RenderEngine
Loading...
Searching...
No Matches
Texture.hpp
Go to the documentation of this file.
1/*
2 * Texture.hpp
3 *
4 * Class for representing a texture.
5 * by Stefanie Zollmann
6 *
7 */
8#ifndef TEXTURE_HPP
9#define TEXTURE_HPP
10// Include standard headers
11#include <stdio.h>
12#include <stdlib.h>
13#include <string>
14#include <vector>
15
17
20class Texture{
21 public:
23
24 Texture();
26
27 Texture(std::string filename);
29
30 Texture(int w, int h);
32
33 ~Texture();
35
36 void bindTexture();
38
39 GLuint getTextureID();
40
41 private:
42 GLuint m_textureID;
43 // Load a .DDS file using GLFW's own loader
44 GLuint loadDDS(const char * imagepath);
45 // a few functions that can be used everywhere - better to encapsulate this!!!
46 // Load a .BMP file using our custom loader
47 GLuint loadBMP_custom(const char * imagepath);
48
49};
50
51
52
53
54#endif
Texture.
Definition Texture.hpp:20
~Texture()
Destructor.
Definition Texture.cpp:49
GLuint getTextureID()
bindTegetTextureIDxture
Definition Texture.cpp:61
Texture()
Default constructor.
Definition Texture.cpp:17
void bindTexture()
bindTexture
Definition Texture.cpp:54