PGE Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
Pages
data_configs
obj_bgo.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 OBJ_BGO_H
20
#define OBJ_BGO_H
21
22
#include "../graphics/graphics.h"
23
#include <QString>
24
25
struct
obj_bgo
26
{
27
// [background-1]
28
unsigned
long
id;
29
// name="Smallest bush" ;background name, default="background-%n"
30
QString name;
31
// group="scenery" ;Background group, default="All about my pigeon"
32
QString group;
33
// category="scenery" ;Background categoty, default="Scenery"
34
QString category;
35
// grid=32 ; 32 | 16 Default="32"
36
unsigned
int
grid;
37
// view=background ; background2 | background | foreground | foreground2, default="background"
38
int
view;
//-1, 0, 1, 2
39
int
offsetX;
40
int
offsetY;
41
int
zOffset;
42
// image="background-1.gif" ;Image file with level file ; the image mask will be have *m.gif name.
43
QString image_n;
44
QString mask_n;
45
46
/* OpenGL */
47
bool
isInit;
48
PGE_Texture
* image;
49
GLuint textureID;
50
long
textureArrayId;
51
long
animator_ID;
52
/* OpenGL */
53
54
// climbing=0 ; default = 0
55
bool
climbing;
56
// animated = 0 ; default = 0 - no
57
bool
animated;
58
// frames = 1 ; default = 1
59
unsigned
int
frames;
60
// frame-speed=125 ; default = 125 ms, etc. 8 frames per sec
61
unsigned
int
framespeed;
62
unsigned
int
frame_h;
//Hegth of the frame. Calculating automatically
63
64
unsigned
int
display_frame;
65
};
66
67
#endif // OBJ_BGO_H
PGE_Texture
Definition:
pge_texture.h:32
obj_bgo
Definition:
obj_bgo.h:25
Generated by
1.8.7