X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fvout.h;h=34e5369bdd677d0dad868c385523ad8edd8df3bc;hb=94cdda13e8bbf6a3bccbaf2d81b424e61050e2d9;hp=3751daacaf97f110b634cfef19f16b88b6f3e990;hpb=3122f7afde04b19f450479adf6875f8176bdb5f2;p=vlc diff --git a/modules/gui/macosx/vout.h b/modules/gui/macosx/vout.h index 3751daacaf..34e5369bdd 100644 --- a/modules/gui/macosx/vout.h +++ b/modules/gui/macosx/vout.h @@ -2,11 +2,12 @@ * vout.h: MacOS X interface module ***************************************************************************** * Copyright (C) 2001-2003 VideoLAN - * $Id: vout.h,v 1.19 2004/01/28 21:31:15 titer Exp $ + * $Id$ * * Authors: Colin Delacroix * Florian G. Pflug * Jon Lech Johansen + * Eric Petit * * 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 @@ -58,24 +59,18 @@ *****************************************************************************/ @interface VLCGLView : NSOpenGLView { - @public - int i_init_done; - int i_textures_loaded; - int i_index; - unsigned long i_texture; + vout_thread_t * p_vout; + int i_effect; + unsigned long pi_textures[2]; + float f_x; + float f_y; + int initDone; } -@end - -/***************************************************************************** - * VLCVout interface - *****************************************************************************/ -@interface VLCVout : NSObject -{ -} - -- (void)createWindow:(NSValue *)o_value; -- (void)destroyWindow:(NSValue *)o_value; +- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout; +- (void) initTextures; +- (void) reloadTexture: (int) index; +- (void) cleanUp; @end @@ -84,13 +79,14 @@ *****************************************************************************/ struct vout_sys_t { - int i_opengl; - + NSAutoreleasePool *o_pool; NSRect s_rect; - int b_pos_saved; VLCWindow * o_window; - VLCGLView * o_glview; + VLCQTView * o_qtview; + int i_opengl; + int b_pos_saved; + vlc_bool_t b_mouse_moved; mtime_t i_time_mouse_last_moved; @@ -103,4 +99,10 @@ struct vout_sys_t ImageDescriptionHandle h_img_descr; Ptr p_fullscreen_state; #endif + + /* OpenGL */ + VLCGLView * o_glview; + uint8_t * p_data[2]; + uint8_t * p_data_orig[2]; + int i_cur_pic; };