mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-30 22:44:22 +01:00
37 lines
820 B
C
37 lines
820 B
C
#ifndef __GUI_H__
|
|
#define __GUI_H__
|
|
|
|
#include <gccore.h>
|
|
|
|
|
|
struct sGui {
|
|
void * texmem; // rgba8 - working draw area
|
|
int currmenu;
|
|
int prevmenu;
|
|
u32 fontcolour;
|
|
int screenheight;
|
|
};
|
|
|
|
extern struct sGui Gui;
|
|
|
|
// Prototypes
|
|
void gui_alphasetup ();
|
|
void gui_makebg ();
|
|
void Make_Texture_RGBA8 (void * dst_tex, void * src_data, int width, int height);
|
|
void gui_drawbox (int x1, int y1, int width, int height, int r, int g, int b, int a);
|
|
void gui_DrawText (int x, int y, char *text);
|
|
void gui_setfontcolour (int r, int g, int b, int a);
|
|
void gui_DrawLine (int x1, int y1, int x2, int y2, int r, int g, int b, int a);
|
|
void gui_clearscreen ();
|
|
void gui_draw ();
|
|
void gui_showscreen ();
|
|
|
|
void gui_savescreen ();
|
|
|
|
// external functions
|
|
extern void setfontsize (int pixelsize);
|
|
|
|
|
|
#endif
|
|
|