src/video/directfb/SDL_DirectFB_video.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 04 Sep 2001 22:53:46 +0000
changeset 167 cb384ef627f6
child 252 e8157fcb3114
permissions -rw-r--r--
Added support for DirectFB video on Linux (thanks Denis!)
slouken@167
     1
/*
slouken@167
     2
    SDL - Simple DirectMedia Layer
slouken@167
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
slouken@167
     4
slouken@167
     5
    This library is free software; you can redistribute it and/or
slouken@167
     6
    modify it under the terms of the GNU Library General Public
slouken@167
     7
    License as published by the Free Software Foundation; either
slouken@167
     8
    version 2 of the License, or (at your option) any later version.
slouken@167
     9
slouken@167
    10
    This library is distributed in the hope that it will be useful,
slouken@167
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@167
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@167
    13
    Library General Public License for more details.
slouken@167
    14
slouken@167
    15
    You should have received a copy of the GNU Library General Public
slouken@167
    16
    License along with this library; if not, write to the Free
slouken@167
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@167
    18
slouken@167
    19
    Sam Lantinga
slouken@167
    20
    slouken@devolution.com
slouken@167
    21
*/
slouken@167
    22
slouken@167
    23
#ifdef SAVE_RCSID
slouken@167
    24
static char rcsid =
slouken@167
    25
 "@(#) $Id$";
slouken@167
    26
#endif
slouken@167
    27
slouken@167
    28
#ifndef _SDL_DirectFB_video_h
slouken@167
    29
#define _SDL_DirectFB_video_h
slouken@167
    30
slouken@167
    31
#include <directfb.h>
slouken@167
    32
slouken@167
    33
#include "SDL_mouse.h"
slouken@167
    34
#include "SDL_sysvideo.h"
slouken@167
    35
slouken@167
    36
#define _THIS SDL_VideoDevice *this
slouken@167
    37
slouken@167
    38
/* Private display data */
slouken@167
    39
slouken@167
    40
struct SDL_PrivateVideoData
slouken@167
    41
{
slouken@167
    42
  int                    initialized;
slouken@167
    43
slouken@167
    44
  IDirectFB             *dfb;
slouken@167
    45
  IDirectFBDisplayLayer *layer;
slouken@167
    46
  IDirectFBInputBuffer  *inputbuffer;
slouken@167
    47
slouken@167
    48
#define NUM_MODELISTS	4		/* 8, 16, 24, and 32 bits-per-pixel */
slouken@167
    49
  int SDL_nummodes[NUM_MODELISTS];
slouken@167
    50
  SDL_Rect **SDL_modelist[NUM_MODELISTS];
slouken@167
    51
};
slouken@167
    52
slouken@167
    53
#define HIDDEN (this->hidden)
slouken@167
    54
slouken@167
    55
#endif /* _SDL_DirectFB_video_h */