annotate Renderer/Engine/ps3fb/cp_vt.h @ 981:a193a851b5e3

add double buffering frame device
author root@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 30 Sep 2010 23:54:08 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
981
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 // cp_vt.h
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 //
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 // Copyright (c) 2006, Mike Acton <macton@cellperformance.com>
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 //
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 // documentation files (the "Software"), to deal in the Software without restriction, including without
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 // limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 // the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 // conditions:
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 //
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 // The above copyright notice and this permission notice shall be included in all copies or substantial
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 // portions of the Software.
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13 //
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16 // EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
17 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
18 // OR OTHER DEALINGS IN THE SOFTWARE.
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 #ifndef CP_VT_H
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
21 #define CP_VT_H
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
22
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 #if defined(__cplusplus)
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
24 extern "C"
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
25 {
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
26 #endif
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
27
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28 typedef struct cp_vt cp_vt;
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
29
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
30 struct cp_vt
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
31 {
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
32 int prev_tty_ndx;
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
33 int prev_kdmode;
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
34 int tty;
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
35 int tty_ndx;
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
36 };
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
37
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
38 int cp_vt_open_graphics(cp_vt* restrict vt);
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
39 int cp_vt_close(cp_vt* restrict vt);
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
40
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
41 #if defined(__cplusplus)
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
42 }
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
43 #endif
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
44
a193a851b5e3 add double buffering frame device
root@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
45 #endif