comparison libvo/vo_macosx.h @ 15289:e985d786c5f1

macosx core video module
author nplourde
date Fri, 29 Apr 2005 11:05:16 +0000
parents
children 8e21844c8a4c
comparison
equal deleted inserted replaced
15288:7fc3a521d42b 15289:e985d786c5f1
1 /*
2 vo_macosx.h
3
4 by Nicolas Plourde <nicolasplourde@gmail.com>
5
6 Copyright (c) Nicolas Plourde - 2005
7
8 MPlayer Mac OSX video out module.
9 */
10
11 #import <Cocoa/Cocoa.h>
12 #import <QuartzCore/QuartzCore.h>
13
14 @interface CustomOpenGLView : NSOpenGLView
15 {
16 //Cocoa
17 NSWindow *window;
18 NSOpenGLContext *glContext;
19 NSEvent *event;
20
21 //CoreVideo
22 CVPixelBufferRef currentFrameBuffer;
23 CVOpenGLTextureCacheRef textureCache;
24 CVOpenGLTextureRef texture;
25
26 GLfloat lowerLeft[2];
27 GLfloat lowerRight[2];
28 GLfloat upperRight[2];
29 GLfloat upperLeft[2];
30
31 BOOL mouseHide;
32 }
33
34 - (BOOL) acceptsFirstResponder;
35 - (BOOL) becomeFirstResponder;
36 - (BOOL) resignFirstResponder;
37
38 //window & rendering
39 - (void) initOpenGLView;
40 - (void) prepareOpenGL;
41 - (void) render;
42 - (void) reshape;
43 - (void) setCurrentTexture;
44 - (void) drawRect: (NSRect *) bounds;
45 - (void) fullscreen: (BOOL) animate;
46 - (void) ontop;
47 - (void) panscan;
48
49 //event
50 - (void) keyDown: (NSEvent *) theEvent;
51 - (void) mouseMoved: (NSEvent *) theEvent;
52 - (void) mouseDown: (NSEvent *) theEvent;
53 - (void) rightMouseDown: (NSEvent *) theEvent;
54 - (void) otherMouseDown: (NSEvent *) theEvent;
55 - (void) scrollWheel: (NSEvent *) theEvent;
56 - (void) mouseEvent: (NSEvent *) theEvent;
57 - (void) check_events;
58 @end