OSDN Git Service

インタフェース名変更: Proxy -> ProxyProfile
[coroid/inqubus.git] / vhook / main.h
1 #ifndef MAIN_H_
2 #define MAIN_H_
3 #include <SDL/SDL.h>
4 #include <SDL/SDL_ttf.h>
5 #include "nicodef.h"
6 #include "struct_define.h"
7 #include "chat/chat.h"
8 #include "chat/chat_slot.h"
9
10 struct COMMDATA {
11     int enable;
12     CHAT chat;
13     CHAT_SLOT slot;
14     int opaque_comment;
15     DATA* common;
16 };
17
18 struct DATA{
19         FILE* log;
20         TTF_Font* font[CMD_FONT_MAX];
21         SDL_Surface* screen;
22 //      /*それぞれのコメントに応じたデータ*/
23 //      //ユーザコメント
24 //      int enable_user_comment;
25 //      CHAT chat;
26 //      CHAT_SLOT slot;
27 //      //投稿者コメント
28 //      int enable_owner_comment;
29         COMMDATA user_comment;
30         COMMDATA owner_comment;
31         
32         //一般的なデータ
33         int shadow_kind;
34         int show_video;
35         int fontsize_fix;
36         int process_first_called;
37         int video_length;
38     int aspect_mode;
39 };
40
41 typedef struct SETTING{
42         const char* data_user_path;
43         const char* data_owner_path;
44         const char* font_path;
45         int video_length;
46         int font_index;
47         int user_slot_max;
48         int owner_slot_max;
49         int shadow_kind;
50         /*TRUE OR FALSE*/
51         int enable_user_comment;
52         int enable_owner_comment;
53         int show_video;
54         int fontsize_fix;
55         int opaque_comment;
56     /**
57      * アスペクト比の指定. コメントのフォントサイズや速度に影響する.
58      * 0 - 4:3
59      * 1 - 16:9
60      */
61     int aspect_mode;
62 }SETTING;
63
64 int init(FILE* log);
65 int initData(DATA* data,FILE* log,const SETTING* setting);
66 int main_process(DATA* data,SDL_Surface* surf,const int now_vpos);
67 int closeData(DATA* data);
68 int close();
69
70 #endif /*MAIN_H_*/