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
38
typedef
struct
_TsxImage
{
39
40
char
*
source
;
41
int
width
;
42
int
height
;
43
44
}
TsxImage
;
45
46
typedef
struct
_TsxTile
{
47
48
int
id
;
49
char
*
type
;
50
double
probability
;
51
52
struct
_TsxTile
*
next
;
53
54
}
TsxTile
;
55
56
typedef
struct
_TsxTileset
{
57
58
char
*
version
;
59
char
*
tiledversion
;
60
char
*
name
;
61
char
*
source
;
62
int
tilewidth
;
63
int
tileheight
;
64
int
tilecount
;
65
int
columns
;
66
int
firstgid
;
67
int
margin
;
68
int
spacing
;
69
70
struct
_TsxImage
*
image
;
71
72
struct
_TsxTile
*
tiles
;
73
74
struct
_TsxTileset
*
next
;
75
76
}
TsxTileset
;
77
78
TsxTileset
*
tsx_load
(
char
* _filename );
79
80
#endif
_TsxImage
Definition
tsx.h:38
_TsxImage::width
int width
Definition
tsx.h:41
_TsxImage::height
int height
Definition
tsx.h:42
_TsxImage::source
char * source
Definition
tsx.h:40
_TsxTile
Definition
tsx.h:46
_TsxTile::probability
double probability
Definition
tsx.h:50
_TsxTile::type
char * type
Definition
tsx.h:49
_TsxTile::next
struct _TsxTile * next
Definition
tsx.h:52
_TsxTile::id
int id
Definition
tsx.h:48
_TsxTileset
Definition
tsx.h:56
_TsxTileset::spacing
int spacing
Definition
tsx.h:68
_TsxTileset::image
struct _TsxImage * image
Definition
tsx.h:70
_TsxTileset::columns
int columns
Definition
tsx.h:65
_TsxTileset::next
struct _TsxTileset * next
Definition
tsx.h:74
_TsxTileset::version
char * version
Definition
tsx.h:58
_TsxTileset::name
char * name
Definition
tsx.h:60
_TsxTileset::tiles
struct _TsxTile * tiles
Definition
tsx.h:72
_TsxTileset::tiledversion
char * tiledversion
Definition
tsx.h:59
_TsxTileset::margin
int margin
Definition
tsx.h:67
_TsxTileset::tilecount
int tilecount
Definition
tsx.h:64
_TsxTileset::tilewidth
int tilewidth
Definition
tsx.h:62
_TsxTileset::firstgid
int firstgid
Definition
tsx.h:66
_TsxTileset::source
char * source
Definition
tsx.h:61
_TsxTileset::tileheight
int tileheight
Definition
tsx.h:63
TsxTile
struct _TsxTile TsxTile
TsxTileset
struct _TsxTileset TsxTileset
TsxImage
struct _TsxImage TsxImage
tsx_load
TsxTileset * tsx_load(char *_filename)
Definition
tsx.c:47
Z:
ugbasic
ugbc
src
libs
tsx.h
Generated by
1.16.1