/
GStilestruct.h
48 lines (39 loc) · 1.38 KB
/
GStilestruct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** Copyright (C) 2008-2013 polygone
***
*** This file is a part of the ENIGMA Development Environment.
***
*** ENIGMA is free software: you can redistribute it and/or modify it under the
*** terms of the GNU General Public License as published by the Free Software
*** Foundation, version 3 of the license or any later version.
***
*** This application and its source code is distributed AS-IS, WITHOUT ANY
*** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
*** FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
*** details.
***
*** You should have received a copy of the GNU General Public License along
*** with this code. If not, see <http://www.gnu.org/licenses/>
**/
#ifdef INCLUDED_FROM_SHELLMAIN
# error This file includes non-ENIGMA STL headers and should not be included from SHELLmain.
#endif
#ifndef ENIGMA_GSTILESTRUCT_H
#define ENIGMA_GSTILESTRUCT_H
#include "Universal_System/roomsystem.h"
#include <map>
#include <vector>
namespace enigma
{
extern int tile_vertex_buffer, tile_index_buffer;
extern std::map<int,std::vector<std::vector<int> > > tile_layer_metadata;
struct bkinxop
{
bool operator() (const tile a, const tile b) {return (a.bckid < b.bckid);}
};
extern bkinxop bkinxcomp;
void draw_tile();
void delete_tiles();
void load_tiles();
void rebuild_tile_layer(int layer_depth);
}
#endif