File: video.h

package info (click to toggle)
invaders 1.0.0-19
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 324 kB
  • sloc: ansic: 2,231; sh: 56; asm: 28; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __VIDEO_H
#define __VIDEO_H

#include "types.h"

// effect on virtual buffer only
void video_usecolor(uint8 fg, uint8 bg);
void video_putchar(int32 x, int32 y, uint8 code);
void video_fill(int32 x, int32 y, int32 width, int32 height, uint8 code);
void video_puthex8(int32 x, int32 y, uint8 hex);
void video_putstring(int32 x, int32 y, char *str);

// immediate effect
void video_update();
void video_setcolor(uint8 colnum, uint8 red, uint8 green, uint8 blue);
void video_blinkchars(bool onoff);
void video_hidecursor();
void video_poscursor(int32 x, int32 y); // out of screen -> video_hidecursor
void video_initialize();

#endif