OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / macosx / PictureGLView.h
1 /* $Id: PictureGLView.h,v 1.7 2005/08/01 15:10:44 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://handbrake.m0k.org/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #include <Cocoa/Cocoa.h>
8
9 #include "hb.h"
10
11 #define HB_ANIMATE_NONE     1
12 #define HB_ANIMATE_BACKWARD 2
13 #define HB_ANIMATE_FORWARD  4
14 #define HB_ANIMATE_SLOW     8
15
16 @interface HBPictureGLView : NSOpenGLView
17
18 {
19     bool            fHasQE;
20     unsigned long   fTarget;
21
22     int             fWidth;
23     int             fHeight;
24     int             fTexWidth;
25     int             fTexHeight;
26     float           fCoordX;
27     float           fCoordY;
28
29     uint8_t       * fBuffers[2];
30     #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
31     unsigned long   fTextures[2];
32     #else
33     /* Leopard */
34     unsigned int   fTextures[2];
35     #endif;
36     
37     int             fLastEffect;
38     int             fAnimDuration;
39     int             fFrameRate;
40 }
41
42 - (id) initWithFrame: (NSRect) frame;
43 - (void) reshape;
44 - (void) drawRect: (NSRect) rect;
45 - (void) drawAnimation: (int) anim;
46
47 - (void) Display: (int) anim buffer1: (uint8_t *) buffer1
48     buffer2: (uint8_t *) buffer2 width: (int) width
49     height: (int) height;
50
51 @end