2008-08-06 01:09:59 +00:00
|
|
|
/****************************************************************************
|
2010-01-27 22:20:37 +00:00
|
|
|
* Snes9x Nintendo Wii/Gamecube Port
|
2008-08-06 01:09:59 +00:00
|
|
|
*
|
|
|
|
* softdev July 2006
|
2009-04-22 18:21:37 +00:00
|
|
|
* Michniewski 2008
|
2018-12-26 16:10:12 -07:00
|
|
|
* Tantric 2008-2019
|
2008-09-11 04:41:58 +00:00
|
|
|
*
|
|
|
|
* video.h
|
|
|
|
*
|
|
|
|
* Video routines
|
2008-09-12 05:28:40 +00:00
|
|
|
***************************************************************************/
|
|
|
|
|
2008-08-06 01:09:59 +00:00
|
|
|
#ifndef _GCVIDEOH_
|
|
|
|
#define _GCVIDEOH_
|
2008-09-11 04:41:58 +00:00
|
|
|
|
2008-08-06 01:39:43 +00:00
|
|
|
#include <ogcsys.h>
|
|
|
|
|
2010-03-21 23:43:54 +00:00
|
|
|
#include "snes9x/snes9x.h"
|
2008-08-06 01:09:59 +00:00
|
|
|
|
2009-03-11 17:28:37 +00:00
|
|
|
void AllocGfxMem();
|
2008-08-06 01:09:59 +00:00
|
|
|
void InitGCVideo ();
|
2009-03-11 17:28:37 +00:00
|
|
|
void StopGX();
|
2009-04-02 05:14:18 +00:00
|
|
|
void ResetVideo_Emu();
|
|
|
|
void setGFX();
|
2008-08-06 01:09:59 +00:00
|
|
|
void update_video (int width, int height);
|
2009-04-02 05:14:18 +00:00
|
|
|
void ResetVideo_Menu();
|
2009-03-11 17:28:37 +00:00
|
|
|
void TakeScreenshot();
|
2019-03-02 16:38:41 -07:00
|
|
|
void ClearScreenshot();
|
2009-04-02 05:14:18 +00:00
|
|
|
void Menu_Render();
|
2009-03-11 17:28:37 +00:00
|
|
|
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);
|
|
|
|
|
2010-04-13 23:34:01 +00:00
|
|
|
extern GXRModeObj *vmode;
|
2009-03-11 17:28:37 +00:00
|
|
|
extern int screenheight;
|
|
|
|
extern int screenwidth;
|
2008-09-11 04:41:58 +00:00
|
|
|
extern bool progressive;
|
2010-06-03 23:15:34 +00:00
|
|
|
extern u8 * gameScreenPng;
|
|
|
|
extern int gameScreenPngSize;
|
2009-05-25 06:47:37 +00:00
|
|
|
extern u32 FrameTimer;
|
2016-02-06 14:40:46 -07:00
|
|
|
extern bool vmode_60hz;
|
|
|
|
extern int timerstyle;
|
2009-06-15 08:23:19 +00:00
|
|
|
extern int CheckVideo;
|
2008-09-11 04:41:58 +00:00
|
|
|
|
2008-08-06 01:09:59 +00:00
|
|
|
#endif
|