SDL  2.0
SDL_kmsdrmmouse.h
Go to the documentation of this file.
1 /*
2  Simple DirectMedia Layer
3  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
4  Atomic KMSDRM backend by Manuel Alfayate Corchete <redwindwanderer@gmail.com>
5 
6  This software is provided 'as-is', without any express or implied
7  warranty. In no event will the authors be held liable for any damages
8  arising from the use of this software.
9 
10  Permission is granted to anyone to use this software for any purpose,
11  including commercial applications, and to alter it and redistribute it
12  freely, subject to the following restrictions:
13 
14  1. The origin of this software must not be misrepresented; you must not
15  claim that you wrote the original software. If you use this software
16  in a product, an acknowledgment in the product documentation would be
17  appreciated but is not required.
18  2. Altered source versions must be plainly marked as such, and must not be
19  misrepresented as being the original software.
20  3. This notice may not be removed or altered from any source distribution.
21 */
22 
23 #include "../../SDL_internal.h"
24 
25 #ifndef SDL_KMSDRM_mouse_h_
26 #define SDL_KMSDRM_mouse_h_
27 
28 #include <gbm.h>
29 
30 #define MAX_CURSOR_W 512
31 #define MAX_CURSOR_H 512
32 
33 /* Driverdata with driver-side info about the cursor. */
34 typedef struct _KMSDRM_CursorData
35 {
36  uint16_t hot_x, hot_y;
38 
39  /* The buffer where we store the mouse bitmap ready to be used.
40  We get it ready and filled in CreateCursor(), and copy it to a GBM BO in ShowCursor().*/
42  size_t buffer_size;
43  size_t buffer_pitch;
44 
46 
47 extern void KMSDRM_InitMouse(_THIS);
49 
50 extern void KMSDRM_InitCursor();
51 
52 #endif /* SDL_KMSDRM_mouse_h_ */
53 
54 /* vi: set ts=4 sw=4 expandtab: */
#define _THIS
unsigned short uint16_t
unsigned int uint32_t
void KMSDRM_InitCursor()
void KMSDRM_DeinitMouse(_THIS)
void KMSDRM_InitMouse(_THIS)
GLubyte GLubyte GLubyte GLubyte w