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  

SoBkgMap.c File Reference

#include "SoBkgMap.h"
#include "SoMath.h"

Functions

void SoBkgMapInit (SoBkgMap *a_This, u16 a_Mode)
 Initializes the SoBkgMap for use.

void SoBkgMapCopyData (SoBkgMap *a_This, u16 startx, u16 starty, u16 endx, u16 endy)
 copy a newly exposed block of tiles from the map to the screen

void SoBkgMapSetBackground (SoBkgMap *a_This, u32 a_Bkg)
 Associates the map with a background.

void SoBkgMapSetTileMap (SoBkgMap *a_This, SoTileMap *a_TileMap)
 Associates a TileMap with the BkgMap.

void SoBkgMapSetScroll (SoBkgMap *a_This, u16 a_XPos, u16 a_YPos)
 Sets the scroll position of a map on a background.


Detailed Description

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

Author:
Mark T. Price
Date:
Mar 31, 2003
See the SoBkgMap module for more information.


Function Documentation

void SoBkgMapCopyData SoBkgMap   a_This,
u16    startx,
u16    starty,
u16    endx,
u16    endy
[static]
 

copy a newly exposed block of tiles from the map to the screen

Parameters:
a_This  this pointer
startx  starting x index of rectangle
starty  starting y index of rectangle
endx  ending x index of rectangle (inclusive)
endy  ending y index of rectangle (inclusive)
This helper function copies tile information from the SoBkgMap to the SoBkg.

For internal use only.


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