gbasys
view samples/fonts/fonts.c @ 8:047c61960005
- added bg2 matrix support
- changed some stupid const pointers to register addresses to hardcoded compile-time defines
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 22 Jun 2014 06:26:11 +0300 |
parents | 875ef6085efc |
children |
line source
1 #include "gbasys.h"
3 int main(void)
4 {
5 int i;
6 struct font *font;
8 print_vba("foobar\n");
10 set_video_mode(VMODE_LFB_240x160_16, 1);
12 font = get_font();
14 clear_buffer(front_buffer, 0);
15 draw_string("int main(void) {", 0, 0, front_buffer);
16 draw_string(" return 0;", 0, font->y, front_buffer);
17 draw_string("}", 0, font->y * 2, front_buffer);
18 /*flip();*/
20 halt();
22 return 0;
23 }