Changes

Jump to navigation Jump to search
28 bytes removed ,  18:04, 10 August 2009
m
Robot: Cosmetic changes
Line 6: Line 6:  
*To keep things tidy, if you store files on SD, store them in a folder named the same as your application's name.
 
*To keep things tidy, if you store files on SD, store them in a folder named the same as your application's name.
   −
==Code Snippets==
+
== Code Snippets ==
===Video Auto-Detect Routine===
+
=== Video Auto-Detect Routine ===
 
Here is the video detect code from the DevKitPro Wii example.
 
Here is the video detect code from the DevKitPro Wii example.
 
Keep in mind, however, the libogc included in DevkitPPC since r15 does this for you already with one function call.
 
Keep in mind, however, the libogc included in DevkitPPC since r15 does this for you already with one function call.
Line 26: Line 26:  
Please see also: [[Display Issues]]
 
Please see also: [[Display Issues]]
   −
===Exit to Loader===
+
=== Exit to Loader ===
 
It's a good idea to add some way to return to the loader, otherwise you have to reboot your Wii to exit.
 
It's a good idea to add some way to return to the loader, otherwise you have to reboot your Wii to exit.
 
<source lang="c">
 
<source lang="c">
Line 36: Line 36:  
</source>
 
</source>
   −
===How to use the Wiimote===
+
=== How to use the Wiimote ===
 
A separate article is available: [[How to use the Wiimote]].
 
A separate article is available: [[How to use the Wiimote]].
   −
===Reboot Wii===
+
=== Reboot Wii ===
 
Use:
 
Use:
 
<source lang="c">
 
<source lang="c">
Line 49: Line 49:  
Or use SYS_RETURNTOMENU for a "soft" return to the system menu, SYS_POWEROFF to shut down the wii (automatically to the appropriate Idle or Standby mode, depending on the WC24 setting), or SYS_POWEROFF_STANDBY or _IDLE to specify the mode and override the system setting.
 
Or use SYS_RETURNTOMENU for a "soft" return to the system menu, SYS_POWEROFF to shut down the wii (automatically to the appropriate Idle or Standby mode, depending on the WC24 setting), or SYS_POWEROFF_STANDBY or _IDLE to specify the mode and override the system setting.
   −
===How to use the callback function for Power and Reset===
+
=== How to use the callback function for Power and Reset ===
 
This is just a way of doing this stuff, feel free to change the code.
 
This is just a way of doing this stuff, feel free to change the code.
 
<source lang="c">
 
<source lang="c">
Line 110: Line 110:  
Possible values for HWButton are:
 
Possible values for HWButton are:
 
<source lang="c">
 
<source lang="c">
#define SYS_RESTART         0 /*!< Reboot the gamecube, force, if necessary, to boot the IPL menu. Cold reset is issued */
+
#define SYS_RESTART 0 /*!< Reboot the gamecube, force, if necessary, to boot the IPL menu. Cold reset is issued */
#define SYS_HOTRESET         1 /*!< Restart the application. Kind of softreset */
+
#define SYS_HOTRESET 1 /*!< Restart the application. Kind of softreset */
#define SYS_SHUTDOWN         2 /*!< Shutdown the thread system, card management system etc. Leave current thread running and return to caller */
+
#define SYS_SHUTDOWN 2 /*!< Shutdown the thread system, card management system etc. Leave current thread running and return to caller */
#define SYS_RETURNTOMENU     3 /*!< Directly load the Wii Channels menu, without actually cold-resetting the system */
+
#define SYS_RETURNTOMENU 3 /*!< Directly load the Wii Channels menu, without actually cold-resetting the system */
#define SYS_POWEROFF         4 /*!< Powers off the Wii, automatically choosing Standby or Idle mode depending on the user's configuration */
+
#define SYS_POWEROFF 4 /*!< Powers off the Wii, automatically choosing Standby or Idle mode depending on the user's configuration */
 
#define SYS_POWEROFF_STANDBY 5 /*!< Powers off the Wii to standby (red LED, WC24 off) mode. */
 
#define SYS_POWEROFF_STANDBY 5 /*!< Powers off the Wii to standby (red LED, WC24 off) mode. */
#define SYS_POWEROFF_IDLE   6 /*!< Powers off the Wii to idle (yellow LED, WC24 on) mode. */
+
#define SYS_POWEROFF_IDLE 6 /*!< Powers off the Wii to idle (yellow LED, WC24 on) mode. */
 
</source>
 
</source>
   Line 133: Line 133:  
* incorrect vertex count - the vertex count specified by GX_Begin() must match the vertex count your app sends between GX_Begin() and GX_End()
 
* incorrect vertex count - the vertex count specified by GX_Begin() must match the vertex count your app sends between GX_Begin() and GX_End()
 
*incorrect vertex data order - vertex data is order dependent - the order GX expects vertex data is: position, normal, color, bi-normals, and texture coordinates
 
*incorrect vertex data order - vertex data is order dependent - the order GX expects vertex data is: position, normal, color, bi-normals, and texture coordinates
[[Category:Development]]
  −
   
=== Examples ===
 
=== Examples ===
 
If you are looking for GX examples. Devkitpro comes with a few GX examples which should help you to get started. Some knowledge about OpenGL is useful, but remember that GX is not the same as OpenGL.
 
If you are looking for GX examples. Devkitpro comes with a few GX examples which should help you to get started. Some knowledge about OpenGL is useful, but remember that GX is not the same as OpenGL.
 +
 +
[[Category:Development]]
1,189

edits

Navigation menu