YAGE
v0.3.1
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
texture.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* texture.h
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
5
* MIT License, see LICENSE file for more details.
6
* ----------------------------------------------------------------------------
7
*/
8
9
#ifndef GL_TEXTURE_H
10
#define GL_TEXTURE_H
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
22
Texture
() :
id
(0),
width
(0),
height
(0) {}
23
24
Texture
(GLuint id_i,
int
width_i,
int
height_i)
25
:
id
(id_i),
width
(width_i),
height
(height_i)
26
{
27
}
28
};
29
30
}
// namespace yage
31
32
#endif
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)
Definition:
texture.h:24
yage::Texture::width
int width
Definition:
texture.h:19
yage::Texture::Texture
Texture()
Definition:
texture.h:22
yage::Texture::id
GLuint id
Definition:
texture.h:18
yage
core
texture.h
Generated on Sun Dec 17 2017 12:31:07 for YAGE by
1.8.6