mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
#ifndef _IN_VIDEO_H
|
|
#define _IN_VIDEO_H
|
|
|
|
#include <PR/ultratypes.h>
|
|
#include <PR/gbi.h>
|
|
|
|
// maximum framerate; if the game runs faster than this, things will break
|
|
#if PAL
|
|
#define VIDEO_MAX_FPS 200
|
|
#else
|
|
#define VIDEO_MAX_FPS 240
|
|
#endif
|
|
|
|
s32 videoInit(void);
|
|
void videoStartFrame(void);
|
|
void videoSubmitCommands(Gfx *cmds);
|
|
void videoClearScreen(void);
|
|
void videoEndFrame(void);
|
|
|
|
void *videoGetWindowHandle(void);
|
|
|
|
void videoUpdateNativeResolution(s32 w, s32 h);
|
|
s32 videoGetNativeWidth(void);
|
|
s32 videoGetNativeHeight(void);
|
|
|
|
s32 videoGetWidth(void);
|
|
s32 videoGetHeight(void);
|
|
f32 videoGetAspect(void);
|
|
s32 videoGetFullscreen(void);
|
|
s32 videoGetMaximizeWindow(void);
|
|
void videoSetMaximizeWindow(s32 fs);
|
|
u32 videoGetTextureFilter(void);
|
|
u32 videoGetTextureFilter2D(void);
|
|
|
|
void videoSetWindowOffset(s32 x, s32 y);
|
|
void videoSetFullscreen(s32 fs);
|
|
void videoSetTextureFilter(u32 filter);
|
|
void videoSetTextureFilter2D(u32 filter);
|
|
|
|
s32 videoCreateFramebuffer(u32 w, u32 h, s32 upscale, s32 autoresize);
|
|
void videoSetFramebuffer(s32 target);
|
|
void videoResetFramebuffer(void);
|
|
void videoCopyFramebuffer(s32 dst, s32 src, s32 left, s32 top);
|
|
void videoResizeFramebuffer(s32 target, u32 w, u32 h, s32 upscale, s32 autoresize);
|
|
s32 videoFramebuffersSupported(void);
|
|
|
|
void videoResetTextureCache(void);
|
|
void videoFreeCachedTexture(const void *texptr);
|
|
|
|
#endif
|