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

Latest commit

 

History

History
75 lines (56 loc) · 2.29 KB

SDL_wsconsvideo.h

File metadata and controls

75 lines (56 loc) · 2.29 KB
 
Nov 22, 2005
Nov 22, 2005
1
2
/*
SDL - Simple DirectMedia Layer
Feb 1, 2006
Feb 1, 2006
3
Copyright (C) 1997-2006 Sam Lantinga
Nov 22, 2005
Nov 22, 2005
4
5
This library is free software; you can redistribute it and/or
Feb 1, 2006
Feb 1, 2006
6
modify it under the terms of the GNU Lesser General Public
Nov 22, 2005
Nov 22, 2005
7
License as published by the Free Software Foundation; either
Feb 1, 2006
Feb 1, 2006
8
version 2.1 of the License, or (at your option) any later version.
Nov 22, 2005
Nov 22, 2005
9
10
11
12
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
Feb 1, 2006
Feb 1, 2006
13
Lesser General Public License for more details.
Nov 22, 2005
Nov 22, 2005
14
Feb 1, 2006
Feb 1, 2006
15
16
17
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
Nov 22, 2005
Nov 22, 2005
18
19
20
21
Sam Lantinga
slouken@libsdl.org
*/
Feb 21, 2006
Feb 21, 2006
22
#include "SDL_config.h"
Nov 22, 2005
Nov 22, 2005
23
24
25
26
27
28
29
#ifndef _SDL_wsconsvideo_h
#define _SDL_wsconsvideo_h
#include <sys/time.h>
#include <termios.h>
#include <dev/wscons/wsconsio.h>
Feb 16, 2006
Feb 16, 2006
30
Nov 22, 2005
Nov 22, 2005
31
32
#include "SDL_mouse.h"
#include "SDL_mutex.h"
Feb 16, 2006
Feb 16, 2006
33
#include "../SDL_sysvideo.h"
Nov 22, 2005
Nov 22, 2005
34
35
36
37
38
39
40
41
42
void WSCONS_ReportError(char *fmt, ...);
/* Hidden "this" pointer for the video functions */
#define _THIS SDL_VideoDevice *this
#define private (this->hidden)
/* Private display data */
Jul 10, 2006
Jul 10, 2006
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
typedef void WSCONS_bitBlit(Uint8 * src_pos, int srcRightDelta, // pixels, not bytes
int srcDownDelta, // pixels, not bytes
Uint8 * dst_pos,
int dst_linebytes, int width, int height);
struct SDL_PrivateVideoData
{
int fd; /* file descriptor of open device */
struct wsdisplay_fbinfo info; /* frame buffer characteristics */
int physlinebytes; /* number of bytes per row */
int redMask, greenMask, blueMask;
Uint8 *fbstart; /* These refer to the surface used, */
int fblinebytes; /* physical frame buffer or shadow. */
size_t fbmem_len;
Uint8 *physmem;
Uint8 *shadowmem;
int rotate;
int shadowFB; /* Tells whether a shadow is being used. */
WSCONS_bitBlit *blitFunc;
SDL_Rect *SDL_modelist[2];
unsigned int kbdType;
int did_save_tty;
struct termios saved_tty;
Nov 22, 2005
Nov 22, 2005
71
72
73
74
};
#endif /* _SDL_wsconsvideo_h */
Jul 10, 2006
Jul 10, 2006
75
/* vi: set ts=4 sw=4 expandtab: */