PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
common_features
pge_texture.h
1
/*
2
* Platformer Game Engine by Wohlstand, a free platform for game making
3
* Copyright (c) 2015 Vitaly Novichkov <admin@wohlnet.ru>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef PGE_TEXTURE_H
20
#define PGE_TEXTURE_H
21
22
#define SDL_MAIN_HANDLED
23
#include <SDL2/SDL_opengl.h>
24
25
struct
PGEColor
26
{
27
float
r;
28
float
g;
29
float
b;
30
};
31
32
struct
PGE_Texture
33
{
34
PGE_Texture
();
35
GLuint texture;
// Texture object handle
36
int
w;
//Width of the texture.
37
int
h;
//Height of the texture.
38
bool
inited;
//Texture is valid and loaded
39
GLubyte *texture_layout;
40
GLenum format;
41
GLint nOfColors;
42
43
PGEColor
ColorUpper;
44
PGEColor
ColorLower;
45
};
46
47
48
#endif // PGE_TEXTURE_H
PGE_Texture
Definition:
pge_texture.h:32
PGEColor
Definition:
pge_texture.h:25
Generated by
1.8.7