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 
9 #pragma once
10 
11 #include <glad/glad.h>
12 
13 namespace yage
14 {
15 
16 struct Texture {
17  GLuint id;
18  int width;
19  int height;
20  int x;
21  int y;
22 
23  Texture() : id(0), width(0), height(0), x(0), y(0) {}
24 
25  Texture(GLuint id_i, int width_i, int height_i, int x_i = 1, int y_i = 1)
26  : id(id_i), width(width_i), height(height_i), x(x_i), y(y_i)
27  {
28  }
29 };
30 
31 } // namespace yage
int y
Definition: texture.h:21
int x
Definition: texture.h:20
int height
Definition: texture.h:19
Definition: texture.h:16
Texture(GLuint id_i, int width_i, int height_i, int x_i=1, int y_i=1)
Definition: texture.h:25
int width
Definition: texture.h:18
Texture()
Definition: texture.h:23
GLuint id
Definition: texture.h:17