Changeset c0a1dbea40aa511d41f644c0d19b51fffc384a5a

Show
Ignore:
Timestamp:
07/20/04 22:25:25 (4 years ago)
Author:
Cyril Deguet <asmax@videolan.org>
git-committer:
Cyril Deguet <asmax@videolan.org> 1090355125 +0000
git-parent:

[3c3996cccb591768d9fc8d4bc1e0e728ed6df8cf]

git-author:
Cyril Deguet <asmax@videolan.org> 1090355125 +0000
Message:
  • modules/video_output/x11/glx.c: new OpenGL vout for X11.
    TODO: - factorization with xcommon.c
    • factorization with glx.c in GaLaktos? plugin
    • remove hard-coded values
  • (If you don't like the rotating cube, hack the code yourself,
    the variables will come later ! ;)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • build-vlc

    r421866e rc0a1dbe  
    3232X11 x11 
    3333XVIDEO xvideo 
     34GLX glx 
    3435FB fb 
    3536MGA mga 
  • config.in

    r421866e rc0a1dbe  
    9393   bool 'X11 support' CONFIG_X11 
    9494   bool 'XVideo support' CONFIG_XVIDEO 
     95   bool 'GLX support' CONFIG_GLX 
    9596   bool 'Linux framebuffer support' CONFIG_FB 
    9697   bool 'Linux kernel Matrox support' CONFIG_MGA 
  • configure.ac

    rc163444 rc0a1dbe  
    27472747      fi ]) 
    27482748fi 
     2749 
     2750dnl 
     2751dnl  GLX module 
     2752dnl 
     2753AC_ARG_ENABLE(glx, 
     2754  [  --enable-glx            X11 OpenGL (GLX) support (default disabled)]) 
     2755if test "${enable_glx}" = "yes" 
     2756then 
     2757  VLC_ADD_PLUGINS([glx]) 
     2758  VLC_ADD_LDFLAGS([glx],[-lGL -lGLU]) 
     2759fi 
     2760 
    27492761 
    27502762dnl 
  • modules/video_output/x11/Modules.am

    rfe17002 rc0a1dbe  
    1111    $(NULL) 
    1212 
     13SOURCES_glx = \ 
     14    glx.c \ 
     15    $(NULL) 
  • modules/visualization/galaktos/main.c

    r1e4bfd0 rc0a1dbe  
    116116double **origy; 
    117117 
    118  
     118char *buffer; //XXX 
    119119 
    120120int galaktos_init( galaktos_thread_t *p_thread ) 
     
    128128 
    129129    /* Load default preset directory */ 
    130     loadPresetDir("/home/cyril/.vlc/galaktos"); 
    131 //    loadPresetDir("/etc/projectM/presets"); 
     130//    loadPresetDir("/home/cyril/.vlc/galaktos"); 
     131    loadPresetDir("/etc/projectM/presets"); 
    132132 
    133133    initPCM(maxsamples); 
  • modules/visualization/galaktos/video_init.c

    rb45ccdd rc0a1dbe  
    3838 
    3939extern int texsize; 
     40 
     41extern char *buffer; 
    4042 
    4143 
     
    119121         * screen and copying to a texture before we do normal rendering. 
    120122         */ 
     123    buffer = malloc(3*texsize*texsize); 
    121124 
    122125        glBindTexture(GL_TEXTURE_2D, *RenderTargetTextureID); 
     
    128131            GL_RGB, 
    129132            GL_UNSIGNED_BYTE, 
    130             0); 
     133            buffer); 
    131134 //   } 
    132135