blob: e741d5eff468189e4e08230a0e80ffa3d54f3d8d (
plain)
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
|
/*
* Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
* SPDX-License-Identifier: MIT
*/
#ifndef LOADGL_H
#define LOADGL_H
#include "gldefs.h"
typedef void *lgl_loadfunc(const char *name);
enum lgl_status {
LGL_OK,
LGL_MISSING,
};
enum lgl_status lgl_load(lgl_loadfunc *load);
const char *lgl_strerror(enum lgl_status status);
const char *gl_strerror(GLenum error);
#define _LGL_INTERFACE(rett, name, func, ...) \
typedef rett func(__VA_ARGS__); \
extern func *name;
#define LGL_INTERFACE(rett, name, ...) _LGL_INTERFACE(rett, name, name##_func, __VA_ARGS__)
INTERFACES()dnl
#endif // LOADGL_H
|