File: eglsupport.h

package info (click to toggle)
renpy 6.99.12.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 56,124 kB
  • ctags: 34,563
  • sloc: python: 38,642; ansic: 4,763; makefile: 51; sh: 2
file content (33 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
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
#ifndef EGLSUPPORT_H
#define EGLSUPPORT_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(int interval);


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

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

#endif