forked from KS-Presto/Wolf4SDL
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathid_crt.h
38 lines (30 loc) · 939 Bytes
/
id_crt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
** File: id_crt.h
** Project: Wolf4SDL
** Original author: Fabien sanglard
** Modificaton author: André Guilherme
** Original Creation date: 2014-08-26.
** Description:
** Header file for the whole contents
** Note: This file is heavly modified on:
** https://github.com/fabiensanglard/Chocolate-Wolfenstein-3D/blob/master/crt.h
*/
#ifndef ID_CRT_H
#define ID_CRT_H
#ifdef CRT
/*
* CRT aspect ratio is 4:3, height will be infered.
*/
void CRT_Init(int _width); /* TODO: Add height support. */
/*
* Trigger the Digital To Analogic convertion
*/
void CRT_DAC(void);
void CRT_Screenshot(void);
void CRT_FreeScreenshot(SDL_Surface *surface1, SDL_Surface *surface2);
#if !SDL_MAJOR_VERSION == 1 || SDL_MAJOR_VERSION == 2
void CRT_DestroyTexture(SDL_Texture* texture1, SDL_Texture* texture2);
#endif
void CRT_BlitImage(SDL_Surface* img1src, SDL_Surface* img1dst, SDL_Surface* img2src, SDL_Surface* img2dst);
#endif
#endif