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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
1 #ifndef FB_H
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
2 #define FB_H
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
3
988
da1cec21f0c9 fix for double buffer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 981
diff changeset
4 #include "types.h"
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 #if defined(__linux__)
539
3bc98f6d31ff Reorganization..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 298
diff changeset
6
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 #include <unistd.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 #include <stdio.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 #include <fcntl.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 #include <linux/fb.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 #include <linux/fs.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 #include <sys/mman.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 #include <sys/ioctl.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 #include <stdlib.h>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 #include <iostream>
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 using namespace std;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 /* function prototype */
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20 void send_current_error_msg(const char *ptr);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 void send_current_information(const char *ptr);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22
896
f3530a4100bf minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 895
diff changeset
23 #endif
f3530a4100bf minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 895
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
29
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
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