1 /* $Id: PictureGLView.h,v 1.7 2005/08/01 15:10:44 titer Exp $
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. */
7 #include <Cocoa/Cocoa.h>
11 #define HB_ANIMATE_NONE 1
12 #define HB_ANIMATE_BACKWARD 2
13 #define HB_ANIMATE_FORWARD 4
14 #define HB_ANIMATE_SLOW 8
16 @interface HBPictureGLView : NSOpenGLView
20 unsigned long fTarget;
29 uint8_t * fBuffers[2];
30 #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
31 unsigned long fTextures[2];
34 unsigned int fTextures[2];
42 - (id) initWithFrame: (NSRect) frame;
44 - (void) drawRect: (NSRect) rect;
45 - (void) drawAnimation: (int) anim;
47 - (void) Display: (int) anim buffer1: (uint8_t *) buffer1
48 buffer2: (uint8_t *) buffer2 width: (int) width