GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Toggle main menu visibility
Main Page
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
g
j
Functions
g
Variables
Typedefs
g
Enumerations
g
j
Enumerator
g
Macros
g
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
include
backends
gp_sdl.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-2.1-or-later
2
/*
3
* Copyright (C) 2009-2012 Cyril Hrubis <metan@ucw.cz>
4
*/
5
17
#ifndef BACKENDS_GP_SDL_H
18
#define BACKENDS_GP_SDL_H
19
20
#include <stdint.h>
21
#include <
backends/gp_backend.h
>
22
24
enum
gp_sdl_flags
{
26
GP_SDL_FULLSCREEN
= 0x01,
28
GP_SDL_RESIZABLE
= 0x02,
29
};
24
enum
gp_sdl_flags
{
…
};
30
49
gp_backend
*
gp_sdl_init
(
gp_size
w,
gp_size
h, uint8_t bpp,
50
enum
gp_sdl_flags
flags,
const
char
*caption);
51
52
#endif
/* BACKENDS_GP_SDL_H */
gp_size
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition
gp_types.h:24
gp_backend.h
An abstraction for display, keyboard and mouse.
gp_sdl_init
gp_backend * gp_sdl_init(gp_size w, gp_size h, uint8_t bpp, enum gp_sdl_flags flags, const char *caption)
Initalizes SDL as drawing backend.
gp_sdl_flags
gp_sdl_flags
SDL backend init flags.
Definition
gp_sdl.h:24
GP_SDL_RESIZABLE
@ GP_SDL_RESIZABLE
Allow for the backend to be resizable.
Definition
gp_sdl.h:28
GP_SDL_FULLSCREEN
@ GP_SDL_FULLSCREEN
Start as a full screen.
Definition
gp_sdl.h:26
gp_backend
A backend.
Definition
gp_backend.h:145
Generated by
1.9.8