Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
texture.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <glad/glad.h>
13 
14 namespace yage
15 {
16 
17 struct Texture {
18  GLuint id;
19  int width;
20  int height;
21  int x;
22  int y;
23 
24  Texture() : id(0), width(0), height(0), x(0), y(0) {}
25 
26  Texture(GLuint id_i, int width_i, int height_i, int x_i = 1, int y_i = 1)
27  : id(id_i), width(width_i), height(height_i), x(x_i), y(y_i)
28  {
29  }
30 };
31 
32 } // namespace yage
int y
Definition: texture.h:22
int x
Definition: texture.h:21
int height
Definition: texture.h:20
Definition: texture.h:17
Texture(GLuint id_i, int width_i, int height_i, int x_i=1, int y_i=1)
Definition: texture.h:26
int width
Definition: texture.h:19
Texture()
Definition: texture.h:24
GLuint id
Definition: texture.h:18