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  

SoTileSet.h File Reference

#include "SoSystem.h"

Go to the source code of this file.

Data Structures

struct  SoTileSet
 Tileset structure. More...


Defines

#define SoTileSetGetNumTiles(a_This)
 Returns the number of tiles in the TileSet.

#define SoTileSetIs16Colors(a_This)
 Tests whether the tileset is palettized or not (returns true if palettized).

#define SoTileSetGetData(a_This)
 Returns the actual texture data of the tileset.


Functions

u32 SoTileSetGetSize (const SoTileSet *a_This)
 To get the size of the entire tileset.

void SoTileSetBkgLoad (const SoTileSet *a_This, u32 a_CharBase, u32 a_BaseIdx)
 Loads tile data into background VRAM.

void SoTileSetCopyFromLinearBuffer (u32 *source, u32 *dest, u32 width, u32 height)
 Copy a linear buffer to sprite format, which is organised in a linear array of 8*8 blocks.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter, Mark T. Price, Gabriele Scibilia
Date:
June 28, 2003
See the SoTileSet module for more information.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.