dsekai
World engine for retrocomputers.
Loading...
Searching...
No Matches
tmasn.h
Go to the documentation of this file.
1
2#ifndef TMASN_H
3#define TMASN_H
4
10
18
22
24#define TILEMAP_ASN_ERROR_READ -1
25
26#define TILEMAP_ASN_ERROR_WRITE -1
27
28#define TILEMAP_ASN_SAVE_BUFFER_INITIAL_SZ 2048
29
30/* Public */
31
32int32_t tilemap_asn_load_res( RESOURCE_ID id, struct TILEMAP* t ) SECTION_ASN;
33int32_t tilemap_asn_load(
34 const uint8_t* asn_buffer, int32_t asn_buffer_sz, struct TILEMAP* t
35) SECTION_ASN;
36int32_t tilemap_asn_save(
37 MEMORY_HANDLE h_buffer, int32_t idx, struct TILEMAP* t ) SECTION_ASN;
38
40
42
43#endif /* !TMASN_H */
44
struct FAKE_MEMORY_HANDLE * MEMORY_HANDLE
A reference to a block of memory which the operating system may move around on its own to free up spa...
Definition fakem.h:21
uint32_t RESOURCE_ID
String or numerical identifier specifying an asset on disk.
Definition nullr.h:16
Information pertaining to in-game world currently loaded.
Definition tmstruct.h:87