Mercurial > hg > Game > Cerium
annotate Renderer/Engine/fb.h @ 1379:13065ad17328 draft
collada moved but only my mac.
author | e095732 <e095732@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Jan 2012 21:56:32 +0900 |
parents | da1cec21f0c9 |
children |
rev | line source |
---|---|
539 | 1 #ifndef FB_H |
2 #define FB_H | |
3 | |
988 | 4 #include "types.h" |
283 | 5 #if defined(__linux__) |
539 | 6 |
283 | 7 #include <unistd.h> |
8 #include <stdio.h> | |
9 #include <fcntl.h> | |
10 #include <linux/fb.h> | |
11 #include <linux/fs.h> | |
12 #include <sys/mman.h> | |
13 #include <sys/ioctl.h> | |
14 #include <stdlib.h> | |
15 #include <iostream> | |
16 using namespace std; | |
17 | |
18 | |
19 /* function prototype */ | |
20 void send_current_error_msg(const char *ptr); | |
21 void send_current_information(const char *ptr); | |
22 | |
896 | 23 #endif |
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; |
981
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
896
diff
changeset
|
27 uint32_t *fbptr[2]; |
895
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 | |
895
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
31 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
|
32 |
b662e9dd26b0
add alignment of classes in SPU
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
539
diff
changeset
|
33 #endif |