In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
417 bytes added ,  05:33, 4 April 2009
Line 35: Line 35:     
===Usage===
 
===Usage===
Call <code>HomeMenu_Init()</code> to set things up.  Its parameters are:
+
# Call <code>HomeMenu_Init()</code> to set things up.  Its parameters are:
* <code>int screenWidth</code> -- horizontal resolution of screen.
+
#* <code>int screenWidth</code> -- horizontal resolution of screen.
* <code>int screenHeight</code> -- vertical resolution of screen.
+
#* <code>int screenHeight</code> -- vertical resolution of screen.
* <code>void* framebuffer0</code> -- pointer to the first framebuffer.
+
#* <code>void* framebuffer0</code> -- pointer to the first framebuffer.
* <code>void* framebuffer1</code> -- pointer to the second framebuffer (Currently assumes double-buffering).
+
#* <code>void* framebuffer1</code> -- pointer to the second framebuffer (Currently assumes double-buffering).
* <code>u8 framebufferIndex</code> -- index to last buffer drawn to [0, 1].
+
#* <code>u8 framebufferIndex</code> -- index to last buffer drawn to [0, 1].
 
+
# Specify graphics library with <code>HomeMenu_SetGFX()</code>.  Accepted values are:
When you want to display the menu (when the user presses HOME), simply call <code>HomeMenu_Show()</code>.  In order for [[HomeMenu]] to be able to take a screenshot (used as the menu background) <code>HomeMenu_Show()</code> must be called ''before'' flushing the framebuffer.
+
#* <code>HM_GFX_GRRLIB</code>
 +
#* <code>HM_GFX_LIBWIISPRITE</code>
 +
#* <code>HM_GFX_FAILSAFE</code> (which currently draws nothing).
 +
# Specify sound library with <code>HomeMenu_SetSND()</code>.  Accepted values are:
 +
#* <code>HM_GFX_ANSD</code>
 +
#* <code>HM_GFX_SDL</code> (not yet implemented)
 +
#* <code>HM_GFX_NOSOUND</code>.
 +
# When you want to display the menu (when the user presses HOME), simply call <code>HomeMenu_Show()</code>.  In order for [[HomeMenu]] to be able to take a screenshot (used as the menu background) <code>HomeMenu_Show()</code> must be called ''before'' flushing the framebuffer.
    
'''Tip:'''  If you have a callback set up for when the user holds down on the wiimote's powerbutton, add <code>HomeMenu_Hide()</code> to this callback to tell HomeMenu to relinquish its control of the main thread.
 
'''Tip:'''  If you have a callback set up for when the user holds down on the wiimote's powerbutton, add <code>HomeMenu_Hide()</code> to this callback to tell HomeMenu to relinquish its control of the main thread.
613

edits

Navigation menu