OldSchool Library
OSL_MAP Struct Reference

Structure representing a map. More...

#include <map.h>

Data Fields

OSL_IMAGEimg
 
void * map
 
int scrollX
 
int scrollY
 
int tileX
 
int tileY
 
int drawSizeX
 
int drawSizeY
 
int mapSizeX
 
int mapSizeY
 
u8 format
 
u8 flags
 
u8 addit1
 

Detailed Description

Structure representing a map.

The OSL_MAP structure holds all the necessary information about a map, including its tileset image, map data, scrolling values, tile sizes, and the format of the map.

Field Documentation

◆ img

OSL_IMAGE* OSL_MAP::img

Pointer to the tileset image used by the map.

◆ map

void* OSL_MAP::map

Pointer to the raw binary map data.

◆ scrollX

int OSL_MAP::scrollX

Horizontal scroll position (in pixels).

◆ scrollY

int OSL_MAP::scrollY

Vertical scroll position (in pixels).

◆ tileX

int OSL_MAP::tileX

Width of a tile in the tileset (in pixels).

◆ tileY

int OSL_MAP::tileY

Height of a tile in the tileset (in pixels).

◆ drawSizeX

int OSL_MAP::drawSizeX

Width of the drawing area (in pixels).

◆ drawSizeY

int OSL_MAP::drawSizeY

Height of the drawing area (in pixels).

◆ mapSizeX

int OSL_MAP::mapSizeX

Width of the map (in tiles).

◆ mapSizeY

int OSL_MAP::mapSizeY

Height of the map (in tiles).

◆ format

u8 OSL_MAP::format

Format of the map, defined by OSL_MAP_FORMATS.

◆ flags

u8 OSL_MAP::flags

Flags defining map properties, see OSL_MAP_FLAGS.

◆ addit1

u8 OSL_MAP::addit1

Additional map data used for special formats.


The documentation for this struct was generated from the following file: