2009-07-14 16:28:17 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* USB Loader GX Team
|
|
|
|
* gui_banner.h
|
|
|
|
*
|
|
|
|
* Shows TPL Banner images
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _GUIBANNER_H_
|
|
|
|
#define _GUIBANNER_H_
|
|
|
|
|
|
|
|
#include "libwiigui/gui.h"
|
|
|
|
|
|
|
|
class GuiBanner : public GuiImage
|
|
|
|
{
|
|
|
|
public:
|
2009-07-19 19:48:15 +02:00
|
|
|
//!Constructor
|
|
|
|
//!\param tplfilepath Path of the tpl file
|
2009-07-14 16:28:17 +02:00
|
|
|
GuiBanner(const char *tplfilepath);
|
2009-07-19 19:48:15 +02:00
|
|
|
//!Constructor
|
|
|
|
//!\param mem Memory of the loaded tpl
|
|
|
|
//!\param len Filesize of the tpl
|
|
|
|
//!\param w Width of the tpl
|
|
|
|
//!\param h Height of the tpl
|
|
|
|
GuiBanner(void *mem, u32 len, int w, int h);
|
|
|
|
//!Destructor
|
2009-07-14 16:28:17 +02:00
|
|
|
~GuiBanner();
|
|
|
|
void Draw();
|
2009-07-19 19:48:15 +02:00
|
|
|
protected:
|
|
|
|
void * memory;
|
2009-07-14 16:28:17 +02:00
|
|
|
bool filecheck;
|
2009-07-19 19:48:15 +02:00
|
|
|
u32 tplfilesize;
|
|
|
|
GXTexObj texObj;
|
2009-07-14 16:28:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _GUIBANNER_H_ */
|