comparison src/video/vgl/SDL_vglvideo.h @ 75:b0ae59d0f3ee

Added patches from FreeBSD ports
author Sam Lantinga <slouken@lokigames.com>
date Tue, 19 Jun 2001 13:33:54 +0000
parents
children e8157fcb3114
comparison
equal deleted inserted replaced
74:6e28dae59e3b 75:b0ae59d0f3ee
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997, 1998, 1999, 2000 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Sam Lantinga
20 slouken@devolution.com
21 */
22
23 #ifdef SAVE_RCSID
24 static char rcsid =
25 "@(#) $Id$";
26 #endif
27
28 #ifndef _SDL_vglvideo_h
29 #define _SDL_vglvideo_h
30
31 #include <sys/fbio.h>
32 #include <sys/consio.h>
33 #include <vgl.h>
34
35 #include "SDL_mouse.h"
36 #include "SDL_mutex.h"
37 #include "SDL_sysvideo.h"
38
39 /* Hidden "this" pointer for the video functions */
40 #define _THIS SDL_VideoDevice *this
41
42 typedef struct {
43 int ModeId;
44 int Depth;
45 int Rmask;
46 int Gmask;
47 int Bmask;
48 VGLBitmap ModeInfo;
49 } VGLMode;
50
51 /* Private display data */
52 struct SDL_PrivateVideoData {
53 #define NUM_MODELISTS 4 /* 8, 16, 24, and 32 bits-per-pixel */
54 int SDL_nummodes[NUM_MODELISTS];
55 SDL_Rect **SDL_modelist[NUM_MODELISTS];
56 SDL_mutex *hw_lock;
57 VGLMode *VGLCurMode;
58 int flip_page;
59 byte *flip_address[2];
60 };
61 /* Old variable names */
62 #define SDL_nummodes (this->hidden->SDL_nummodes)
63 #define SDL_modelist (this->hidden->SDL_modelist)
64 #define hw_lock (this->hidden->hw_lock)
65 #define VGLCurMode (this->hidden->VGLCurMode)
66 #define flip_page (this->hidden->flip_page)
67 #define flip_address (this->hidden->flip_address)
68
69 #endif /* _SDL_vglvideo_h */