This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
LvnsCoreP.h
102 lines (80 loc) · 2.55 KB
/
LvnsCoreP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* LEAF Visual Novel System For X
* (c) Copyright 1999,2000 Go Watanabe mailto:go@denpa.org
* All rights reserverd.
*
* ORIGINAL LVNS (c) Copyright 1996-1999 LEAF/AQUAPLUS Inc.
*
* $Id: LvnsCoreP.h,v 1.54 2001/07/18 20:39:15 go Exp $
*
*/
#ifndef __LvnsCoreP_h
#define __LvnsCoreP_h
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/CoreP.h>
#include <sys/time.h>
#include "LvnsCore.h"
#include "Lvns.h"
#include "sximage.h"
#include "cdinfo.h"
typedef struct {
XtPointer extension;
} LvnsCoreClassPart;
typedef struct _LayerCoreClassRec {
CoreClassPart core_class;
LvnsCoreClassPart lvnscore_class;
} LvnsCoreClassRec;
extern LvnsCoreClassRec lvnsCoreClassRec;
#ifndef CDDEVICE
#define CDDEVICE "/dev/cd0a"
#endif
#ifndef AUDIODEVICE
#define AUDIODEVICE "/dev/audio"
#endif
typedef struct _ImageCorePart {
Lvns *info; /* 基本情報 */
/* ----------------------------------------------------------- */
SuperXImage *sximage; /* イメージ表示作業用 ximage + pixmap */
int xoff, yoff;
/* ---------------------------------------------------------- */
/* CD-DA 演奏用データ */
CDInfo *cdinfo;
Music music;
/* -------------------------------------------------------- */
/* サウンド再生用 */
XtInputId sound_ctl_id; /* X入力処理用 */
int sound_ctl_fd; /* プロセス間通信用 */
Sound sound;
/* -------------------------------------------------------- */
/* リソース指定用 */
int type; /* シナリオエンジン種別 */
Bool root_mode; /* ルートウィンドウに表示する */
Bool seen_mode; /* 全文既読とみなすモード(for DEBUG) */
Bool demo_mode; /* オートデモモード */
int latitude_dark; /* 画面が暗い時の輝度の指定 */
Bool key_click_fast; /* 文字表示中断 */
#ifdef DEBUG
int scenario_number; /* シナリオ番号指定用 */
#endif
/* -------------------------------------------------------- */
/* 高精度タイマ用 */
struct timeval timer[10];
Bool noshared;
/* -------------------------------------------------------- */
/* Flip 処理用 */
long wait_clock;
long wait_count;
} LvnsCorePart;
typedef struct _LvnsCoreRec {
CorePart core;
LvnsCorePart lvnscore;
} LvnsCoreRec;
/* convinient defines */
#define COREWIDTH (lcw->core.width)
#define COREHEIGHT (lcw->core.height)
#define LCW (lcw->lvnscore)
/* semi public functions */
void LvnsCoreInitMusic(LvnsCoreWidget lcw);
void LvnsCoreInitSound(LvnsCoreWidget lcw);
#endif