Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
63 lines (45 loc) · 1.93 KB

SDL_DirectFB_modes.h

File metadata and controls

63 lines (45 loc) · 1.93 KB
 
1
2
/*
SDL - Simple DirectMedia Layer
Feb 12, 2011
Feb 12, 2011
3
Copyright (C) 1997-2011 Sam Lantinga
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
Feb 6, 2011
Feb 6, 2011
21
22
23
SDL1.3 DirectFB driver by couriersud@arcor.de
24
25
26
27
28
*/
#ifndef _SDL_directfb_modes_h
#define _SDL_directfb_modes_h
Feb 6, 2011
Feb 6, 2011
29
30
31
#include <directfb.h>
#include "../SDL_sysvideo.h"
32
Mar 15, 2011
Mar 15, 2011
33
#define SDL_DFB_DISPLAYDATA(win) DFB_DisplayData *dispdata = ((win) ? (DFB_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata : NULL)
34
35
36
37
typedef struct _DFB_DisplayData DFB_DisplayData;
struct _DFB_DisplayData
{
Feb 6, 2011
Feb 6, 2011
38
39
IDirectFBDisplayLayer *layer;
DFBSurfacePixelFormat pixelformat;
40
41
42
43
/* FIXME: support for multiple video layer.
* However, I do not know any card supporting
* more than one
*/
Feb 6, 2011
Feb 6, 2011
44
45
DFBDisplayLayerID vidID;
IDirectFBDisplayLayer *vidlayer;
46
Feb 6, 2011
Feb 6, 2011
47
int vidIDinuse;
48
Feb 6, 2011
Feb 6, 2011
49
50
int cw;
int ch;
51
52
53
54
};
extern void DirectFB_InitModes(_THIS);
Dec 1, 2009
Dec 1, 2009
55
56
extern void DirectFB_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
extern int DirectFB_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
57
58
extern void DirectFB_QuitModes(_THIS);
Feb 6, 2011
Feb 6, 2011
59
60
extern void DirectFB_SetContext(_THIS, SDL_Window *window);
61
62
63
#endif /* _SDL_directfb_modes_h */
/* vi: set ts=4 sw=4 expandtab: */