Mercurial > hg > Game > Cerium
annotate Renderer/Engine/viewerPS3.h @ 1767:1a68c05eeadf draft
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Nov 2013 01:28:59 +0900 |
parents | fdb36a9c5030 |
children |
rev | line source |
---|---|
981
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
1 #ifndef INCLUDED_VIEWER_PS3 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
2 #define INCLUDED_VIEWER_PS3 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
3 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
4 #include "fb.h" |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
5 #include "types.h" |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
6 #include "ps3fb/cp_vt.h" |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
7 #include "ps3fb/cp_fb.h" |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
8 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
9 #include "ViewerDevice.h" |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
10 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
11 class ViewerPS3 : public ViewerDevice { |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
12 public: |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
13 ViewerPS3(TaskManager *manager) {}; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
14 ViewerPS3(); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
15 virtual ~ViewerPS3(); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
16 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
17 ScreenInfo screen_info ; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
18 cp_vt vt; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
19 cp_fb fb; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
20 uint32_t frame_ndx; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
21 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
22 ScreenInfo get_fbdev_addr(); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
23 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
24 /* override function */ |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
25 uint32_t *video_init(TaskManager *manager, int bpp, int width, int height); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
26 void clean_pixels(void); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
27 void clear_screen(); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
28 void free_device(); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
29 uint32_t* flip_screen(uint32_t *); |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
30 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
31 }; |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
32 |
fdb36a9c5030
add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff
changeset
|
33 #endif |