PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
obj_wld_items.h
1 /*
2  * Platformer Game Engine by Wohlstand, a free platform for game making
3  * Copyright (c) 2014-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_WLD_ITEMS_H
20 #define OBJ_WLD_ITEMS_H
21 
22 #include <QString>
23 #include <graphics/graphics.h>
24 
26 struct obj_w_tile{
27  unsigned long id;
28  QString image_n;
29  QString mask_n;
30 
31  /* OpenGL */
32  bool isInit;
33  PGE_Texture * image;
34  GLuint textureID;
35  long textureArrayId;
36  long animator_ID;
37  /* OpenGL */
38 
39  unsigned long row;
40  unsigned long col;
41 
42  unsigned int grid;
43  QString group;
44  QString category;
45  bool animated;
46  unsigned int frames;
47  unsigned int framespeed; // Default 128 ms
48  unsigned int frame_h; //Hegth of the frame. Calculating automatically
49  unsigned int display_frame;
50 };
51 
53  unsigned long id;
54  QString image_n;
55  QString mask_n;
56 
57  /* OpenGL */
58  bool isInit;
59  PGE_Texture * image;
60  GLuint textureID;
61  long textureArrayId;
62  long animator_ID;
63  /* OpenGL */
64 
65  unsigned int grid;
66  QString group;
67  QString category;
68  bool animated;
69  unsigned int frames;
70  unsigned int framespeed; // Default 128 ms
71  unsigned int frame_h; //Hegth of the frame. Calculating automatically
72  unsigned int display_frame;
73 };
74 
75 struct obj_w_level{
76  unsigned long id;
77  QString image_n;
78  QString mask_n;
79 
80  /* OpenGL */
81  bool isInit;
82  PGE_Texture * image;
83  GLuint textureID;
84  long textureArrayId;
85  long animator_ID;
86  /* OpenGL */
87 
88  unsigned int grid;
89  QString group;
90  QString category;
91  bool animated;
92  unsigned int frames;
93  unsigned int framespeed; // Default 128 ms
94  unsigned int frame_h; //Hegth of the frame. Calculating automatically
95  unsigned int display_frame;
96 };
97 
98 struct obj_w_path{
99  unsigned long id;
100  QString image_n;
101  QString mask_n;
102 
103  /* OpenGL */
104  bool isInit;
105  PGE_Texture * image;
106  GLuint textureID;
107  long textureArrayId;
108  long animator_ID;
109  /* OpenGL */
110 
111  unsigned long row;
112  unsigned long col;
113  unsigned int grid;
114  QString group;
115  QString category;
116  bool animated;
117  unsigned int frames;
118  unsigned int framespeed; // Default 128 ms
119  unsigned int frame_h; //Hegth of the frame. Calculating automatically
120  unsigned int display_frame;
121 };
122 
123 //Markers
125 {
126  unsigned long path;
127  unsigned long bigpath;
128 };
129 
130 #endif // OBJ_WLD_ITEMS_H
Definition: pge_texture.h:32
Definition: obj_wld_items.h:98
Definition: obj_wld_items.h:75
Definition: obj_wld_items.h:124
Definition: obj_wld_items.h:26
Definition: obj_wld_items.h:52