summaryrefslogtreecommitdiffstats
path: root/libvo/vo_macosx.h
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-29 11:05:16 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-29 11:05:16 +0000
commit923e97b364e10c8edd3cb86b484db46784ef5149 (patch)
tree5cd6cc9dc9d7e605b977b0abef3a922c1d58e997 /libvo/vo_macosx.h
parent7e5636f683cd9d30600c6eb160a871a9ca3e2398 (diff)
downloadmpv-923e97b364e10c8edd3cb86b484db46784ef5149.tar.bz2
mpv-923e97b364e10c8edd3cb86b484db46784ef5149.tar.xz
macosx core video module
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15290 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_macosx.h')
-rw-r--r--libvo/vo_macosx.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/libvo/vo_macosx.h b/libvo/vo_macosx.h
new file mode 100644
index 0000000000..bcb0b27d06
--- /dev/null
+++ b/libvo/vo_macosx.h
@@ -0,0 +1,58 @@
+/*
+ vo_macosx.h
+
+ by Nicolas Plourde <nicolasplourde@gmail.com>
+
+ Copyright (c) Nicolas Plourde - 2005
+
+ MPlayer Mac OSX video out module.
+*/
+
+#import <Cocoa/Cocoa.h>
+#import <QuartzCore/QuartzCore.h>
+
+@interface CustomOpenGLView : NSOpenGLView
+{
+ //Cocoa
+ NSWindow *window;
+ NSOpenGLContext *glContext;
+ NSEvent *event;
+
+ //CoreVideo
+ CVPixelBufferRef currentFrameBuffer;
+ CVOpenGLTextureCacheRef textureCache;
+ CVOpenGLTextureRef texture;
+
+ GLfloat lowerLeft[2];
+ GLfloat lowerRight[2];
+ GLfloat upperRight[2];
+ GLfloat upperLeft[2];
+
+ BOOL mouseHide;
+}
+
+- (BOOL) acceptsFirstResponder;
+- (BOOL) becomeFirstResponder;
+- (BOOL) resignFirstResponder;
+
+//window & rendering
+- (void) initOpenGLView;
+- (void) prepareOpenGL;
+- (void) render;
+- (void) reshape;
+- (void) setCurrentTexture;
+- (void) drawRect: (NSRect *) bounds;
+- (void) fullscreen: (BOOL) animate;
+- (void) ontop;
+- (void) panscan;
+
+//event
+- (void) keyDown: (NSEvent *) theEvent;
+- (void) mouseMoved: (NSEvent *) theEvent;
+- (void) mouseDown: (NSEvent *) theEvent;
+- (void) rightMouseDown: (NSEvent *) theEvent;
+- (void) otherMouseDown: (NSEvent *) theEvent;
+- (void) scrollWheel: (NSEvent *) theEvent;
+- (void) mouseEvent: (NSEvent *) theEvent;
+- (void) check_events;
+@end \ No newline at end of file