ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
tsx.h
Go to the documentation of this file.
1#ifndef __TSX__
2#define __TSX__
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
38typedef struct _TsxImage {
39
40 char * source;
41 int width;
42 int height;
43
45
46typedef struct _TsxTile {
47
48 int id;
49 char * type;
51
52 struct _TsxTile * next;
53
55
56typedef struct _TsxTileset {
57
58 char * version;
60 char * name;
61 char * source;
67 int margin;
69
70 struct _TsxImage * image;
71
72 struct _TsxTile * tiles;
73
74 struct _TsxTileset * next;
75
77
78TsxTileset * tsx_load( char * _filename );
79
80#endif
int width
Definition tsx.h:41
int height
Definition tsx.h:42
char * source
Definition tsx.h:40
Definition tsx.h:46
double probability
Definition tsx.h:50
char * type
Definition tsx.h:49
struct _TsxTile * next
Definition tsx.h:52
int id
Definition tsx.h:48
int spacing
Definition tsx.h:68
struct _TsxImage * image
Definition tsx.h:70
int columns
Definition tsx.h:65
struct _TsxTileset * next
Definition tsx.h:74
char * version
Definition tsx.h:58
char * name
Definition tsx.h:60
struct _TsxTile * tiles
Definition tsx.h:72
char * tiledversion
Definition tsx.h:59
int margin
Definition tsx.h:67
int tilecount
Definition tsx.h:64
int tilewidth
Definition tsx.h:62
int firstgid
Definition tsx.h:66
char * source
Definition tsx.h:61
int tileheight
Definition tsx.h:63
struct _TsxTile TsxTile
struct _TsxTileset TsxTileset
struct _TsxImage TsxImage
TsxTileset * tsx_load(char *_filename)
Definition tsx.c:47