2008-09-02 03:57:21 +02:00
|
|
|
/****************************************************************************
|
2009-07-22 04:05:49 +02:00
|
|
|
* FCE Ultra
|
2008-09-02 03:57:21 +02:00
|
|
|
* Nintendo Wii/Gamecube Port
|
|
|
|
*
|
2009-03-28 18:23:08 +01:00
|
|
|
* Tantric 2008-2009
|
2008-09-02 03:57:21 +02:00
|
|
|
*
|
|
|
|
* gcvideo.h
|
|
|
|
*
|
|
|
|
* Video rendering
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _GCVIDEO_H_
|
|
|
|
#define _GCVIDEO_H_
|
|
|
|
|
|
|
|
// color palettes
|
|
|
|
#define MAXPAL 12
|
|
|
|
|
|
|
|
struct st_palettes {
|
2008-11-05 09:36:01 +01:00
|
|
|
char name[32], desc[32];
|
2008-09-02 03:57:21 +02:00
|
|
|
unsigned int data[64];
|
|
|
|
};
|
|
|
|
|
2009-03-28 18:23:08 +01:00
|
|
|
void InitGCVideo ();
|
|
|
|
void StopGX();
|
|
|
|
void ResetVideo_Emu ();
|
|
|
|
void RenderFrame(unsigned char *XBuf);
|
|
|
|
void setFrameTimer();
|
|
|
|
void zoom (float speed);
|
|
|
|
void zoom_reset ();
|
|
|
|
void SetPalette();
|
|
|
|
void ResetVideo_Menu ();
|
|
|
|
void TakeScreenshot();
|
|
|
|
void Menu_Render ();
|
|
|
|
void Menu_DrawImg(f32 xpos, f32 ypos, u16 width, u16 height, u8 data[], f32 degrees, f32 scaleX, f32 scaleY, u8 alphaF );
|
|
|
|
void Menu_DrawRectangle(f32 x, f32 y, f32 width, f32 height, GXColor color, u8 filled);
|
|
|
|
|
|
|
|
extern int screenheight;
|
|
|
|
extern int screenwidth;
|
|
|
|
extern u8 * gameScreenTex;
|
|
|
|
extern u8 * gameScreenTex2;
|
2008-09-02 03:57:21 +02:00
|
|
|
extern struct st_palettes palettes[];
|
2008-10-08 06:53:06 +02:00
|
|
|
extern int FDSSwitchRequested;
|
2008-10-21 09:50:37 +02:00
|
|
|
extern bool progressive;
|
2009-01-25 07:53:21 +01:00
|
|
|
extern u32 FrameTimer;
|
2008-09-02 03:57:21 +02:00
|
|
|
|
|
|
|
#endif
|