Mercurial > hg > Game > Cerium
annotate Renderer/Engine/fb.h @ 895:b662e9dd26b0 draft
add alignment of classes in SPU
width and height are automatically set in frame buffer API
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Jul 2010 17:23:49 +0900 (2010-07-16) |
parents | 3bc98f6d31ff |
children | f3530a4100bf |
rev | line source |
---|---|
539 | 1 #ifndef FB_H |
2 #define FB_H | |
3 | |
283 | 4 #if defined(__linux__) |
539 | 5 |
283 | 6 #include <unistd.h> |
7 #include <stdio.h> | |
8 #include <fcntl.h> | |
9 #include <linux/fb.h> | |
10 #include <linux/fs.h> | |
11 #include <sys/mman.h> | |
12 #include <sys/ioctl.h> | |
13 #include <stdlib.h> | |
14 #include <iostream> | |
15 using namespace std; | |
16 | |
17 | |
18 /* function prototype */ | |
19 void send_current_error_msg(const char *ptr); | |
20 void send_current_information(const char *ptr); | |
21 | |
539 | 22 /* |
23 Don't put real function in a header... | |
24 */ | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
25 typedef struct screen_info { |
283 | 26 int xres,yres,vbpp,line_len; |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
27 char *fbptr; |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
28 } ScreenInfo , *ScreenInfoPtr; |
283 | 29 |
30 | |
539 | 31 |
32 #endif | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
33 |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
34 extern ScreenInfo get_fbdev_addr(void); |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
35 |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
36 #endif |