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
|
2016-12-10 20:37:33 +01:00
|
|
|
#define MAXPAL 5
|
2008-09-02 03:57:21 +02:00
|
|
|
|
|
|
|
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);
|
2010-12-27 00:44:46 +01:00
|
|
|
void RenderStereoFrames(unsigned char *XBufLeft, unsigned char *XBufRight); //CAK: Stereoscopic 3D
|
2009-03-28 18:23:08 +01:00
|
|
|
void setFrameTimer();
|
2009-10-02 10:05:20 +02:00
|
|
|
void SyncSpeed();
|
2009-03-28 18:23:08 +01:00
|
|
|
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);
|
2012-07-07 19:45:30 +02:00
|
|
|
void Check3D();
|
2009-03-28 18:23:08 +01:00
|
|
|
|
2010-04-14 01:33:52 +02:00
|
|
|
extern GXRModeObj *vmode;
|
2009-03-28 18:23:08 +01:00
|
|
|
extern int screenheight;
|
|
|
|
extern int screenwidth;
|
|
|
|
extern u8 * gameScreenTex;
|
2010-06-04 01:15:58 +02:00
|
|
|
extern u8 * gameScreenPng;
|
|
|
|
extern int gameScreenPngSize;
|
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;
|
2012-07-07 19:45:30 +02:00
|
|
|
extern bool shutter_3d_mode;
|
|
|
|
extern bool anaglyph_3d_mode;
|
|
|
|
extern bool eye_3d;
|
2008-09-02 03:57:21 +02:00
|
|
|
|
2016-09-18 05:43:24 +02:00
|
|
|
#endif
|