BARE2D
Texture.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <GL/glew.h>
4 #include <string>
5 
6 namespace BARE2D
7 {
8 
9  /**
10  * @struct Texture
11  * @brief The texture struct holds very basic stuff - the filepath, width, height, and ID,
12  */
13  struct Texture {
14  std::string filepath = "";
15  GLuint id = 0;
16  int width = 0; // width in pixels
17  int height = 0; // height in pixels
18  };
19 
20 }
BARE2D
Definition: App.cpp:13
BARE2D::Texture::height
int height
Definition: Texture.hpp:17
BARE2D::Texture
The texture struct holds very basic stuff - the filepath, width, height, and ID,.
Definition: Texture.hpp:13
BARE2D::Texture::filepath
std::string filepath
Definition: Texture.hpp:14
BARE2D::Texture::width
int width
Definition: Texture.hpp:16