OSDN Git Service

e73130e08ba0f165026da0ca50d0ca44e32ff20f
[eliscolors/main.git] / ElisBase.h
1 //  Copyright (c) 2009 Yanagi Asakura
2 //
3 //  This software is provided 'as-is', without any express or implied
4 //  warranty. In no event will the authors be held liable for any damages
5 //  arising from the use of this software.
6 //
7 //  Permission is granted to anyone to use this software for any purpose,
8 //  including commercial applications, and to alter it and redistribute it
9 //  freely, subject to the following restrictions:
10 //
11 //  1. The origin of this software must not be misrepresented; you must not
12 //  claim that you wrote the original software. If you use this software
13 //  in a product, an acknowledgment in the product documentation would be
14 //  appreciated but is not required.
15 //
16 //  2. Altered source versions must be plainly marked as such, and must not be
17 //  misrepresented as being the original software.
18 //
19 //  3. This notice may not be removed or altered from any source
20 //  distribution.
21
22 //
23 //  ElisBase.h
24 //  Elis Colors
25 //
26 //  Created by 柳 on 09/09/12.
27 //  Copyright 2009 __MyCompanyName__. All rights reserved.
28 //
29
30 // ElisからElis Colorsへ。
31 // もっとかわいく。もっとエレガントに。
32
33 // 高速化の努力をするべきところ :
34 //   ElisController#timeSliderChanged
35 //   ElisController#getFrameForTime
36 //   ElisKerframe
37 // 他は高速化してもほとんどうれしくないし、性能向上もしない。
38
39 // エフェクト/キーフレーム/プロパティテーブルまわりが激重。どうにかしないと。
40
41 // GCD使ったら表示がちらつくようになった。どういうことなの...
42
43 #define __SNOW_LEOPARD__
44 //#define __SNOW_LEOPARD_GCD__
45
46 #ifdef __SNOW_LEOPARD_GCD__
47 #import <dispatch/dispatch.h>
48 #endif
49
50 #import <QTKit/QTKit.h>
51 #import <QTKit/QTMovie.h>
52 #import <QuartzCore/QuartzCore.h>
53 #import <QuickTime/QuickTime.h>
54 #import <OpenGL/gl.h>
55 #import <OpenGL/glu.h>
56 #import <Foundation/Foundation.h>
57 #import <Quartz/Quartz.h>
58
59 #import <string.h>
60
61 #define DEFAULT_FPS 60
62 #define MINI_LAYER_WIDTH 1.0
63 #define TRACK_SIZE 32
64
65 extern id mainView;
66 extern float timeLineScale;
67
68 extern QTTime globalCurrentTime;
69 extern CGRect ProjectMovieSize;
70 extern BOOL recording;
71 extern int timeLineXShift;
72 extern BOOL usingStampMode;
73 extern BOOL printBorderLine;
74 extern BOOL rendering;