2022-10-05 00:35:05 -07:00
|
|
|
#ifndef FALLOUT_SVGA_H_
|
|
|
|
#define FALLOUT_SVGA_H_
|
2022-05-19 01:51:26 -07:00
|
|
|
|
2022-09-15 02:38:23 -07:00
|
|
|
#include <SDL.h>
|
|
|
|
|
2022-10-07 14:54:27 -07:00
|
|
|
#include "fps_limiter.h"
|
2022-05-19 01:51:26 -07:00
|
|
|
#include "geometry.h"
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
extern bool gMmxEnabled;
|
|
|
|
|
|
|
|
extern Rect _scr_size;
|
|
|
|
extern void (*_scr_blit)(unsigned char* src, int src_pitch, int a3, int src_x, int src_y, int src_width, int src_height, int dest_x, int dest_y);
|
|
|
|
extern void (*_zero_mem)();
|
|
|
|
|
2022-05-24 13:19:36 -07:00
|
|
|
extern SDL_Window* gSdlWindow;
|
|
|
|
extern SDL_Surface* gSdlSurface;
|
2022-07-12 00:10:23 -07:00
|
|
|
extern SDL_Renderer* gSdlRenderer;
|
|
|
|
extern SDL_Texture* gSdlTexture;
|
|
|
|
extern SDL_Surface* gSdlTextureSurface;
|
2022-10-07 14:54:27 -07:00
|
|
|
extern FpsLimiter sharedFpsLimiter;
|
2022-05-24 13:19:36 -07:00
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
void mmxSetEnabled(bool a1);
|
|
|
|
int _init_mode_320_200();
|
|
|
|
int _init_mode_320_400();
|
|
|
|
int _init_mode_640_480_16();
|
|
|
|
int _init_mode_640_480();
|
|
|
|
int _init_mode_640_400();
|
|
|
|
int _init_mode_800_600();
|
|
|
|
int _init_mode_1024_768();
|
|
|
|
int _init_mode_1280_1024();
|
|
|
|
void _get_start_mode_();
|
|
|
|
void _zero_vid_mem();
|
|
|
|
int _GNW95_init_mode_ex(int width, int height, int bpp);
|
|
|
|
int _init_vesa_mode(int width, int height);
|
2022-05-19 04:01:17 -07:00
|
|
|
int _GNW95_init_window(int width, int height, bool fullscreen);
|
2022-05-19 01:51:26 -07:00
|
|
|
int directDrawInit(int width, int height, int bpp);
|
|
|
|
void directDrawFree();
|
|
|
|
void directDrawSetPaletteInRange(unsigned char* a1, int a2, int a3);
|
|
|
|
void directDrawSetPalette(unsigned char* palette);
|
|
|
|
unsigned char* directDrawGetPalette();
|
|
|
|
void _GNW95_ShowRect(unsigned char* src, int src_pitch, int a3, int src_x, int src_y, int src_width, int src_height, int dest_x, int dest_y);
|
|
|
|
void _GNW95_zero_vid_mem();
|
|
|
|
|
2022-05-20 15:50:14 -07:00
|
|
|
int screenGetWidth();
|
|
|
|
int screenGetHeight();
|
2022-05-21 11:30:25 -07:00
|
|
|
int screenGetVisibleHeight();
|
2022-10-04 23:23:27 -07:00
|
|
|
void handleWindowSizeChanged();
|
2022-10-06 09:10:01 -07:00
|
|
|
void renderPresent();
|
2022-05-20 15:50:14 -07:00
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-10-05 00:35:05 -07:00
|
|
|
#endif /* FALLOUT_SVGA_H_ */
|