aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/lfb.h
blob: 2361ec4171d52da1d02eb3194a751955a286ea22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef GRAPHICS_LFB_H
#define GRAPHICS_LFB_H

#define GG_MAX_X 128
#define GG_MAX_Y 96

#ifndef GRAPHICS_LFB_C
extern unsigned int width, height, pitch, isrgb;   /* dimensions and channel order */
#endif

void lfb_init();
void lfb_showpicture();

void draw_cbyte(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c);
void draw_cletter(unsigned char lx, unsigned char ly, unsigned char letter, unsigned int c);
void draw_cstring(unsigned int lx, unsigned int ly, char* s, unsigned int c);
void draw_chex32(unsigned int lx, unsigned int ly, unsigned long val, unsigned int c);

void draw_byte(unsigned char lx, unsigned char ly, unsigned char letter);
void draw_letter(unsigned char lx, unsigned char ly, unsigned char letter);
void draw_string(unsigned int lx, unsigned int ly, char* s);
void draw_hex32(unsigned int lx, unsigned int ly, unsigned long val);

#endif