Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
data
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
yage::Texture::y
int y
Definition:
texture.h:22
yage::Texture::x
int x
Definition:
texture.h:21
yage::Texture::height
int height
Definition:
texture.h:20
yage::Texture
Definition:
texture.h:17
yage::Texture::Texture
Texture(GLuint id_i, int width_i, int height_i, int x_i=1, int y_i=1)
Definition:
texture.h:26
yage::Texture::width
int width
Definition:
texture.h:19
yage::Texture::Texture
Texture()
Definition:
texture.h:24
yage::Texture::id
GLuint id
Definition:
texture.h:18
Generated on Sat Jun 23 2018 15:09:53 by
1.8.6