gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Announcements And Comments > GBAdv: graphical core wrapper functions... and a bit more.

#177996 - sverx - Wed Jul 10, 2013 12:36 pm

Hi!
while working at Waimanu's port to GBA, I made some wrapper functions (and defined lots of constants) to manage backgrounds, sprites (with complete clipping), special effects and windowing.
Well, it's quite complete, at least enough to code games like the one we did...

I hope some beginners/users will find it useful. It's here, with the quite detailed documentation on how to use it.

Here are the functions it implements:
Code:
initDisplay
showBackgrounds
toggleBackgrounds
toggleBackgroundsOn
toggleBackgroundsOff
configureBackground
scrollBackground
configureBackground2AffineMatrix
configureBackground3AffineMatrix
configureBackground2ReferencePoint
configureBackground3ReferencePoint

showSprites
initSprites
initSpritesFrontToBack
initSpritesBackToFront
addSprite
reserveSprite
setSpriteProperties
setSpritePosition
addObjectAffineMatrix
setObjectAffineMatrix
finalizeSprites
copySpritesToOAM

setSpecialEffect
setAlphaBlendingSpecialEffectCoefficients
setBrightnessSpecialEffectCoefficient
setMosaicCoefficients

activateWindow
deactivateWindow
setWindow0Coordinates
setWindow1Coordinates
setWindowControl


If you find any bug or something that isn't clear enough please let me know!
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS / GBA|A DS Homebrewer's Diary

#178066 - sverx - Tue Aug 27, 2013 3:48 pm

... and if you happen to be a DS homebrewer and you want to try the GBA world, you might find interesting this post of mine. :)
_________________
libXM7|NDS programming tutorial (Italiano)|Waimanu DS / GBA|A DS Homebrewer's Diary