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
48
57
58typedef 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
70
90
91TmxMap * tmx_load( char * _filename );
92
93#endif
int width
Definition tmx.h:62
struct _TmxLayer * next
Definition tmx.h:67
char * name
Definition tmx.h:61
int id
Definition tmx.h:60
int * data
Definition tmx.h:65
int height
Definition tmx.h:63
Definition tmx.h:71
int nextlayerid
Definition tmx.h:82
int width
Definition tmx.h:77
struct _TsxTileset * tilesets
Definition tmx.h:85
int infinite
Definition tmx.h:81
char * version
Definition tmx.h:73
char * tiledversion
Definition tmx.h:74
TmxOrientation orientation
Definition tmx.h:75
int height
Definition tmx.h:78
TmxOrientation renderorder
Definition tmx.h:76
int tilewidth
Definition tmx.h:79
int nextobjectid
Definition tmx.h:83
struct _TmxLayer * layers
Definition tmx.h:87
int tileheight
Definition tmx.h:80
enum _TmxRenderOrder TmxRenderOrder
struct _TmxMap TmxMap
TmxMap * tmx_load(char *_filename)
Definition tmx.c:48
struct _TmxLayer TmxLayer
_TmxOrientation
Definition tmx.h:40
@ TMX_HEXAGONAL
Definition tmx.h:45
@ TMX_ISOMETRIC
Definition tmx.h:43
@ TMX_ORTHOGONAL
Definition tmx.h:42
@ TMX_STAGGERED
Definition tmx.h:44
_TmxRenderOrder
Definition tmx.h:49
@ TMX_RIGHT_DOWN
Definition tmx.h:51
@ TMX_LEFT_DOWN
Definition tmx.h:53
@ TMX_LEFT_UP
Definition tmx.h:54
@ TMX_RIGHT_UP
Definition tmx.h:52
enum _TmxOrientation TmxOrientation