]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/vout.h
macosx/vout* : OpenGL VRAM texturing finaly works correctly now.
[vlc] / modules / gui / macosx / vout.h
index 2f5a006504a56d162177309e48be42befb15e8c7..fc72e264f75e9cf9c38dccea36979a9be4f0a82d 100644 (file)
@@ -2,11 +2,12 @@
  * vout.h: MacOS X interface module
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: vout.h,v 1.17 2004/01/25 17:01:57 murray Exp $
+ * $Id: vout.h,v 1.22 2004/02/03 13:00:27 titer Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Florian G. Pflug <fgp@phlo.org>
  *          Jon Lech Johansen <jon-vl@nanocrew.net>
+ *          Eric Petit <titer@m0k.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 /*****************************************************************************
  * VLCView interface
  *****************************************************************************/
-@interface VLCView : NSQuickDrawView
+@interface VLCQTView : NSQuickDrawView
 {
 }
 
 @end
 
+/*****************************************************************************
+ * VLCView interface
+ *****************************************************************************/
+@interface VLCGLView : NSOpenGLView
+{
+    vout_thread_t * p_vout;
+    int             b_init_done;
+    unsigned long   i_texture;
+    float           f_x;
+    float           f_y;
+}
+
+- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;
+- (void) initTextures;
+- (void) reloadTexture;
+
+@end
+
 /*****************************************************************************
  * VLCVout interface
  *****************************************************************************/
@@ -70,6 +89,8 @@
  *****************************************************************************/
 struct vout_sys_t
 {
+    int i_opengl;
+    
     NSRect s_rect;
     int b_pos_saved;
     VLCWindow * o_window;
@@ -86,4 +107,6 @@ struct vout_sys_t
     ImageDescriptionHandle h_img_descr;
     Ptr p_fullscreen_state;
 #endif
+
+    VLCGLView * o_glview;
 };