annotate old/framebuffer/cp_vt.h @ 1251:6da91e7cbffb draft

improve create From COLLADA
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Fri, 11 Nov 2011 18:17:26 +0900
parents 4ee91a28d488
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
979
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 // cp_vt.h
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 //
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 // Copyright (c) 2006, Mike Acton <macton@cellperformance.com>
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 //
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 // documentation files (the "Software"), to deal in the Software without restriction, including without
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 // conditions:
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 //
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 // portions of the Software.
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 //
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@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
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 // OR OTHER DEALINGS IN THE SOFTWARE.
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #ifndef CP_VT_H
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #define CP_VT_H
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 #if defined(__cplusplus)
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 extern "C"
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 {
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 #endif
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 typedef struct cp_vt cp_vt;
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 struct cp_vt
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 {
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 int prev_tty_ndx;
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 int prev_kdmode;
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 int tty;
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 int tty_ndx;
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 };
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 int cp_vt_open_graphics(cp_vt* restrict vt);
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 int cp_vt_close(cp_vt* restrict vt);
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 #if defined(__cplusplus)
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 }
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 #endif
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
4ee91a28d488 add rest
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 #endif