Ignore:
Timestamp:
Jun 21, 2005, 3:28:51 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:

OpenGL support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r375 r483  
    5656#   include <windows.h>
    5757#endif
    58 
     58#if defined(USE_GL)
     59#   include <GL/gl.h>
     60#endif
    5961#include <stdlib.h>
    6062#include <string.h>
     
    193195
    194196        SetConsoleMode(win32_hout, ENABLE_MOUSE_INPUT);
     197    }
     198    else
     199#endif
     200#if defined(USE_GL)
     201    if(_caca_driver == CACA_DRIVER_GL)
     202    {
     203        /* Nothing to do */
    195204    }
    196205    else
     
    427436    else
    428437#endif
     438#if defined(USE_GL)
     439    if(_caca_driver == CACA_DRIVER_GL)
     440    {
     441        /* Nothing to do */
     442    }
     443    else
     444#endif
    429445    {
    430446        /* Dummy */
     
    459475        else
    460476#endif
     477#if defined(USE_GL)
     478        if(!strcasecmp(var, "gl"))
     479            _caca_driver = CACA_DRIVER_GL;
     480        else
     481#endif
    461482#if defined(USE_SLANG)
    462483        if(!strcasecmp(var, "slang"))
     
    491512        return;
    492513    }
     514#endif
     515#if defined(USE_GL)
     516    _caca_driver = CACA_DRIVER_GL;
     517    return;
    493518#endif
    494519#if defined(USE_SLANG)
Note: See TracChangeset for help on using the changeset viewer.