File: gl4esinit.h

package info (click to toggle)
gl4es 1.1.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 56,236 kB
  • sloc: ansic: 81,810; xml: 33,471; cpp: 260; python: 232; sh: 221; makefile: 8
file content (32 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (3)
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

#ifndef _GL4ESINCLUDE_INIT_H_
#define _GL4ESINCLUDE_INIT_H_

#ifndef APIENTRY_GL4ES
# if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
#  define APIENTRY_GL4ES __stdcall
# else
#  define APIENTRY_GL4ES
# endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

// set driver GetProcAddress implementation. required for hardext detection with NOEGL or when loader is disabled
void set_getprocaddress(void *(APIENTRY_GL4ES *new_proc_address)(const char *));
// reguired with NOEGL
void set_getmainfbsize(void (APIENTRY_GL4ES *new_getMainFBSize)(int* width, int* height));
// do this before any GL calls if init constructors are disabled.
void initialize_gl4es(void);
// do this to uninitialize GL4ES if init constructors are disabled.
void close_gl4es(void);
// wrapped GetProcAddress
void* APIENTRY_GL4ES gl4es_GetProcAddress(const char *name);

#ifdef __cplusplus
}
#endif

#endif