OldSchool Library
map.h File Reference

Map handling functions and structures in OSLib. More...

Data Structures

struct  OSL_MAP
 Structure representing a map. More...
 

Typedefs

typedef enum OSL_MAP_FLAGS OSL_MAP_FLAGS
 Enum representing internal map flags.
 

Enumerations

enum  OSL_MAP_FORMATS { OSL_MF_U16 = 1 , OSL_MF_U16_GBA = 2 }
 Enum representing the available map formats. More...
 
enum  OSL_MAP_FLAGS { OSL_MF_SIMPLE = 1 , OSL_MF_TILE1_TRANSPARENT = 2 }
 Enum representing internal map flags. More...
 

Functions

OSL_MAPoslCreateMap (OSL_IMAGE *img, void *map_data, int tileX, int tileY, int mapSizeX, int mapSizeY, int map_format)
 Creates a new map.
 
void oslDrawMap (OSL_MAP *m)
 Draws a map on the screen.
 
void oslDrawMapSimple (OSL_MAP *m)
 Draws a map using a simple method (deprecated).
 
void oslDeleteMap (OSL_MAP *m)
 Deletes a map.
 

Detailed Description

Map handling functions and structures in OSLib.

This header defines the structures and functions used to create, manage, and draw maps in the OSLib framework. Maps are composed of tiles from a tileset image, and this file provides functions to manipulate these maps.