annotate libvo/vo_macosx.h @ 15332:a97a7ab60c38

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