forked from lantus/Cannonball-C
-
Notifications
You must be signed in to change notification settings - Fork 3
/
video.h
60 lines (47 loc) · 1.89 KB
/
video.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/***************************************************************************
Video Rendering.
- Renders the System 16 Video Layers
- Handles Reads and Writes to these layers from the main game code
- Interfaces with platform specific rendering code
Copyright Chris White.
See license.txt for more details.
***************************************************************************/
#pragma once
#include <stdint.h>
#include "globals.h"
#include "roms.h"
#include "frontend/config.h"
#include "hwvideo/hwtiles.h"
#include "hwvideo/hwsprites.h"
#include "hwvideo/hwroad.h"
extern uint16_t *Video_pixels;
extern uint8_t Video_enabled;
void Video_Create();
void Video_Destroy();
int Video_init(video_settings_t* settings);
void Video_disable();
int Video_set_video_mode(video_settings_t* settings);
void Video_draw_frame();
void Video_clear_text_ram();
void Video_write_text8(uint32_t, const uint8_t);
void Video_write_text16IncP(uint32_t*, const uint16_t);
void Video_write_text16(uint32_t, const uint16_t);
void Video_write_text32IncP(uint32_t*, const uint32_t);
void Video_write_text32(uint32_t, const uint32_t);
uint8_t Video_read_text8(uint32_t);
void Video_clear_tile_ram();
void Video_write_tile8(uint32_t, const uint8_t);
void Video_write_tile16IncP(uint32_t*, const uint16_t);
void Video_write_tile16(uint32_t, const uint16_t);
void Video_write_tile32IncP(uint32_t*, const uint32_t);
void Video_write_tile32(uint32_t, const uint32_t);
uint8_t Video_read_tile8(uint32_t);
void Video_write_sprite16(uint32_t*, const uint16_t);
void Video_write_pal8(uint32_t*, const uint8_t);
void Video_write_pal16(uint32_t*, const uint16_t);
void Video_write_pal32IncP(uint32_t*, const uint32_t);
void Video_write_pal32(uint32_t, const uint32_t);
uint8_t Video_read_pal8(uint32_t);
uint16_t Video_read_pal16IncP(uint32_t*);
uint16_t Video_read_pal16(uint32_t);
uint32_t Video_read_pal32(uint32_t*);