ugBASIC
1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
tmx.h
Go to the documentation of this file.
1
#ifndef __TMX__
2
#define __TMX__
3
4
/*****************************************************************************
5
* ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
6
*****************************************************************************
7
* Copyright 2021-2026 Marco Spedaletti (asimov@mclink.it)
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*----------------------------------------------------------------------------
21
* Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
22
* (la "Licenza"); è proibito usare questo file se non in conformità alla
23
* Licenza. Una copia della Licenza è disponibile all'indirizzo:
24
*
25
* http://www.apache.org/licenses/LICENSE-2.0
26
*
27
* Se non richiesto dalla legislazione vigente o concordato per iscritto,
28
* il software distribuito nei termini della Licenza è distribuito
29
* "COSÌ COM'È", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
30
* implicite. Consultare la Licenza per il testo specifico che regola le
31
* autorizzazioni e le limitazioni previste dalla medesima.
32
****************************************************************************/
33
34
/****************************************************************************
35
* INCLUDE SECTION
36
****************************************************************************/
37
38
#include "
tsx.h
"
39
40
typedef
enum
_TmxOrientation
{
41
42
TMX_ORTHOGONAL
= 1,
43
TMX_ISOMETRIC
= 2,
44
TMX_STAGGERED
= 3,
45
TMX_HEXAGONAL
= 4
46
47
}
TmxOrientation
;
48
49
typedef
enum
_TmxRenderOrder
{
50
51
TMX_RIGHT_DOWN
= 1,
52
TMX_RIGHT_UP
= 2,
53
TMX_LEFT_DOWN
= 3,
54
TMX_LEFT_UP
= 4
55
56
}
TmxRenderOrder
;
57
58
typedef
struct
_TmxLayer
{
59
60
int
id
;
61
char
*
name
;
62
int
width
;
63
int
height
;
64
65
int
*
data
;
66
67
struct
_TmxLayer
*
next
;
68
69
}
TmxLayer
;
70
71
typedef
struct
_TmxMap
{
72
73
char
*
version
;
74
char
*
tiledversion
;
75
TmxOrientation
orientation
;
76
TmxOrientation
renderorder
;
77
int
width
;
78
int
height
;
79
int
tilewidth
;
80
int
tileheight
;
81
int
infinite
;
82
int
nextlayerid
;
83
int
nextobjectid
;
84
85
struct
_TsxTileset
*
tilesets
;
86
87
struct
_TmxLayer
*
layers
;
88
89
}
TmxMap
;
90
91
TmxMap
*
tmx_load
(
char
* _filename );
92
93
#endif
_TmxLayer
Definition
tmx.h:58
_TmxLayer::width
int width
Definition
tmx.h:62
_TmxLayer::next
struct _TmxLayer * next
Definition
tmx.h:67
_TmxLayer::name
char * name
Definition
tmx.h:61
_TmxLayer::id
int id
Definition
tmx.h:60
_TmxLayer::data
int * data
Definition
tmx.h:65
_TmxLayer::height
int height
Definition
tmx.h:63
_TmxMap
Definition
tmx.h:71
_TmxMap::nextlayerid
int nextlayerid
Definition
tmx.h:82
_TmxMap::width
int width
Definition
tmx.h:77
_TmxMap::tilesets
struct _TsxTileset * tilesets
Definition
tmx.h:85
_TmxMap::infinite
int infinite
Definition
tmx.h:81
_TmxMap::version
char * version
Definition
tmx.h:73
_TmxMap::tiledversion
char * tiledversion
Definition
tmx.h:74
_TmxMap::orientation
TmxOrientation orientation
Definition
tmx.h:75
_TmxMap::height
int height
Definition
tmx.h:78
_TmxMap::renderorder
TmxOrientation renderorder
Definition
tmx.h:76
_TmxMap::tilewidth
int tilewidth
Definition
tmx.h:79
_TmxMap::nextobjectid
int nextobjectid
Definition
tmx.h:83
_TmxMap::layers
struct _TmxLayer * layers
Definition
tmx.h:87
_TmxMap::tileheight
int tileheight
Definition
tmx.h:80
_TsxTileset
Definition
tsx.h:56
TmxRenderOrder
enum _TmxRenderOrder TmxRenderOrder
TmxMap
struct _TmxMap TmxMap
tmx_load
TmxMap * tmx_load(char *_filename)
Definition
tmx.c:48
TmxLayer
struct _TmxLayer TmxLayer
_TmxOrientation
_TmxOrientation
Definition
tmx.h:40
TMX_HEXAGONAL
@ TMX_HEXAGONAL
Definition
tmx.h:45
TMX_ISOMETRIC
@ TMX_ISOMETRIC
Definition
tmx.h:43
TMX_ORTHOGONAL
@ TMX_ORTHOGONAL
Definition
tmx.h:42
TMX_STAGGERED
@ TMX_STAGGERED
Definition
tmx.h:44
_TmxRenderOrder
_TmxRenderOrder
Definition
tmx.h:49
TMX_RIGHT_DOWN
@ TMX_RIGHT_DOWN
Definition
tmx.h:51
TMX_LEFT_DOWN
@ TMX_LEFT_DOWN
Definition
tmx.h:53
TMX_LEFT_UP
@ TMX_LEFT_UP
Definition
tmx.h:54
TMX_RIGHT_UP
@ TMX_RIGHT_UP
Definition
tmx.h:52
TmxOrientation
enum _TmxOrientation TmxOrientation
tsx.h
Z:
ugbasic
ugbc
src
libs
tmx.h
Generated by
1.16.1