mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2025-01-24 00:41:11 +01:00
89 lines
3.2 KiB
C
89 lines
3.2 KiB
C
#ifndef _COVERFLOW_H_
|
|
#define _COVERFLOW_H_
|
|
|
|
extern bool showingFrontCover;
|
|
extern bool coverflow_test_grid;
|
|
|
|
/**
|
|
* Initilaizes all the common cover images (top, side, front, back)
|
|
*
|
|
* @return void
|
|
*/
|
|
void Coverflow_Grx_Init(void);
|
|
|
|
/**
|
|
* Frees image resources
|
|
*
|
|
* @return void
|
|
*/
|
|
void Coverflow_Close(void);
|
|
|
|
/**
|
|
* Initializes the cover coordinates based on the currently selected theme
|
|
*
|
|
* @param coverCount total number of games
|
|
* @param selectedCoverIndex index of the currently selected cover
|
|
* @param themeChange boolean to determine if a coverflow gui theme change is being performed
|
|
* @return int representing the index of the currently selected cover
|
|
*/
|
|
int Coverflow_initCoverObjects(int coverCount, int selectedCoverIndex, bool themeChange);
|
|
|
|
/**
|
|
* Method that draws the covers.
|
|
*
|
|
* @param *ir pointer to current wiimote data
|
|
* @param coverCount total number of games
|
|
* @param draw_title boolean to determine if the game title should be drawn
|
|
* @return int representing the index of the currently selected cover
|
|
*/
|
|
int Coverflow_drawCovers(ir_t *ir, int coverCount, bool draw_title);
|
|
|
|
/**
|
|
* Method that flips the center cover 180 degrees from it's current position to either a fullscreen view (on it's back cover)
|
|
* or back to where it should be (on it's front cover). If showBackCover is true, it will flip to the back.
|
|
*
|
|
* @param showBackCover boolean to tell if back cover should be shown
|
|
* @param TypeUsed if 1 then wiimote if 2 then dpad if 0 then just flip it with no checks
|
|
* @return int representing the index of the currently selected cover
|
|
*/
|
|
int Coverflow_flip_cover_to_back(bool showBackCover, int TypeUsed);
|
|
|
|
/**
|
|
* Checks the current wiimote params to determine if an action needs to be performed
|
|
* e.g. rotate the center cover, scroll right/left, etc.
|
|
*
|
|
* @param *ir IR info from the WiiMote
|
|
* @param coverCount total number of games
|
|
* @return int representing the index of the currently selected cover
|
|
*/
|
|
int Coverflow_process_wiimote_events(ir_t *ir, int);
|
|
|
|
/**
|
|
* Method used to inititate a new coverflow transition (rotate right/left, spin, etc).
|
|
*
|
|
* @param trans_type int representing the transition type to initiate (rotate right/left, spin, etc)
|
|
* @param speed int representing the transition speed. Set to 0 for the "default" slow speed.
|
|
* @param coverCount total number of games
|
|
* @param speed_rampup bool representing if each iteration of the transition should increase in speed
|
|
* @return int representing the index of the currently selected cover
|
|
*/
|
|
int Coverflow_init_transition(int trans_type, int speed, int coverCount, bool speed_rampup);
|
|
|
|
/**
|
|
* Method that draws the center cover for the game options screen
|
|
*
|
|
* @param game_sel int representing the index of the selected game to draw
|
|
* @param x int X position of the cover
|
|
* @param y int Y position of the cover
|
|
* @param z int Z position of the cover
|
|
* @param xrot f32 the X-axis rotation of the cover
|
|
* @param yrot f32 the Y-axis rotation of the cover
|
|
* @param zrot f32 the Z-axis rotation of the cover
|
|
* @return void
|
|
*/
|
|
void Coverflow_drawCoverForGameOptions(int game_sel,
|
|
float x, float y, float z, f32 xrot, f32 yrot, f32 zrot, int cstyle);
|
|
|
|
|
|
#endif
|