fceugx/source/gcvideo.h

52 lines
1.4 KiB
C
Raw Normal View History

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 7
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);
void RenderStereoFrames(unsigned char *XBufLeft, unsigned char *XBufRight); //CAK: Stereoscopic 3D
2009-03-28 18:23:08 +01:00
void setFrameTimer();
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;
extern u8 * gameScreenPng;
extern int gameScreenPngSize;
2008-09-02 03:57:21 +02:00
extern struct st_palettes palettes[];
extern int FDSSwitchRequested;
extern bool progressive;
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