ebmDevMag.com home
ebm Developer's Magazine
links

developer's mag
main page

article
part 1
part 2
part 3
part 4
part 5
part 6
part 7
part 8
part 9


3 - Middle Layer - The img_ Routines

Obviously, except for the most diehard programmer, this requires a lot of extra coding for the typical game. The next layer provides an easier way to interact with the screen, via the img_ routines (/franklin/SDK/sneak32/include/gui_types.h):

imgGetBase() imgInit() imgReset()
imgAlloc() imgFree() imgGetBase()
imgSetColorBG() imgSetColorFG() imgPixelSetColor()
imgPixelGetColor() imgGetColorDepth() imgLine()
imgRectSetColor() imgRectCombine() imgRectCombineSub()
imgUpdate() imgRecolor()

These routines handle display modes, orientation, and provide routines we need for simplifying tasks - character display, image display, and so forth. At this level, the display is viewed as an IMAGE structure, with img_buffer pointing to the same buffer used by the LCD_ functions.

Previous Section
Next Section

Copyright © 2001-2006 ebmDevMag.com - Legal Notice