PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
obj_bg.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_BG_H
20 #define OBJ_BG_H
21 
22 #include <QString>
23 #include "../graphics/graphics.h"
24 
25 struct obj_BG{
26 
27  unsigned long id;
28  QString name;
29 
30  QString image_n;
31 
32  /* OpenGL */
33  bool isInit;
34  PGE_Texture * image;
35  GLuint textureID;
36  long textureArrayId;
37  long animator_ID;
38  PGEColor Color_upper;
39  PGEColor Color_lower;
40  /* OpenGL */
41 
42  unsigned int type;//convert from string
43  float repeat_h;
44  unsigned int repead_v;
45  unsigned int attached;
46  bool editing_tiled;
47  bool animated;
48  unsigned int frames;
49  unsigned int framespeed;
50  unsigned int frame_h; //Hegth of the frame. Calculating automatically
51 
52  unsigned int display_frame;
53 
54  bool magic;
55  unsigned int magic_strips;
56  QString magic_splits;
57  QList<int > magic_splits_i;
58  QString magic_speeds;
59  QList<double > magic_speeds_i;
60 
61  QString second_image_n;
62  //QPixmap second_image;
63 
64  /* OpenGL */
65  bool second_isInit;
66  PGE_Texture * second_image;
67  GLuint second_textureID;
68  long second_textureArrayId;
69  long second_animator_ID;
70  PGEColor second_Color_upper;
71  PGEColor second_Color_lower;
72  /* OpenGL */
73 
74 
75  float second_repeat_h;
76  unsigned int second_repeat_v;
77  unsigned int second_attached;
78 
79 };
80 
81 #endif // OBJ_BG_H
Definition: obj_bg.h:25
Definition: pge_texture.h:32
Definition: pge_texture.h:25