File: eglsupport.h

package info (click to toggle)
renpy 7.1.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 107,352 kB
  • sloc: python: 42,124; ansic: 4,781; makefile: 43; sh: 14
file content (34 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef EGLSUPPORT_H
#define EGLSUPPORT_H
#include <SDL.h>

/*
 * Returns 1 if this is an EGL platform, or 0 if we are not an EGL platform.
 */
int egl_available(void);

/*
 * If an EGL error has occured, returns a string giving ther error. `where`
 * is text that's included in that string.
 */
char *egl_error(char *where);

/*
 * Initializes the egl system. `interval` is the vsync refresh interval,
 * usually either 1 or 0. Returns NULL on success, or a string if
 * initialization has failed.
 */
char *egl_init(SDL_Window *, int interval);


/*
 * Tells EGL to swap buffers.
 */
void egl_swap(void);

/*
 * Deinitializes EGL support.
 */
void egl_quit(void);

#endif