The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoTileMap Struct Reference
[SoTileMap]

Tile map structure. More...

#include <SoTileMap.h>


Data Fields

bool m_16Colors
 True if the map is 16 colors, false if 256 colors.

u16 m_PalBank
u16 m_SizeX
 number of columns in map

u16 m_SizeY
 number of rows in map

u16m_Data
 actual map data (tile indices)


Detailed Description

Tile map structure.

A single SoTileMap instance represents a single playfield layout. The SoTileMap and it's Data may reside in ROM if no data will be written to it (such as for a static scrolling background). Conversely, the data must reside in RAM if it is to be updated.

All the members are private. Use the methods instead.


Field Documentation

bool SoTileMap::m_16Colors
 

True if the map is 16 colors, false if 256 colors.

For internal use only.

u16* SoTileMap::m_Data
 

actual map data (tile indices)

For internal use only.

u16 SoTileMap::m_PalBank
 

For internal use only.

The bank of colors to use for this map if in 16 color mode (0 - 15)

u16 SoTileMap::m_SizeX
 

number of columns in map

For internal use only.

u16 SoTileMap::m_SizeY
 

number of rows in map

For internal use only.


The documentation for this struct was generated from the following file:
Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.