LMMS
Loading...
Searching...
No Matches
gl.h
Go to the documentation of this file.
1// Copyright 2012-2020 David Robillard <d@drobilla.net>
2// SPDX-License-Identifier: ISC
3
4#ifndef PUGL_GL_H
5#define PUGL_GL_H
6
7#include "pugl/pugl.h"
8
9// IWYU pragma: begin_exports
10
11/* Unfortunately, GL includes vary across platforms, so include them here to
12 enable pure portable programs. */
13
14#ifndef PUGL_NO_INCLUDE_GL_H
15# ifdef __APPLE__
16# include <OpenGL/gl.h>
17# else
18# ifdef _WIN32
19# include <windows.h>
20# endif
21# include <GL/gl.h>
22# endif
23#endif
24
25#ifndef PUGL_NO_INCLUDE_GLU_H
26# ifdef __APPLE__
27# include <OpenGL/glu.h>
28# else
29# ifdef _WIN32
30# include <windows.h>
31# endif
32# include <GL/glu.h>
33# endif
34#endif
35
36// IWYU pragma: end_exports
37
39
46
50typedef void (*PuglGlFunc)(void);
51
57puglGetProcAddress(const char* name);
58
69
78
85const PuglBackend*
86puglGlBackend(void);
87
89
93
94#endif // PUGL_GL_H
static const char * name
Definition pugl.h:1582
PUGL_API PuglGlFunc puglGetProcAddress(const char *name)
Definition win_gl.c:289
PUGL_CONST_API const PuglBackend * puglGlBackend(void)
Definition wasm_gl.c:244
PUGL_API PuglStatus puglEnterContext(PuglView *view)
Definition win_gl.c:303
PUGL_API PuglStatus puglLeaveContext(PuglView *view)
Definition win_gl.c:309
void(* PuglGlFunc)(void)
Definition gl.h:50
PuglStatus
Return status code.
Definition pugl.h:627
struct PuglViewImpl PuglView
A drawable region that receives events.
Definition pugl.h:810
struct PuglBackendImpl PuglBackend
Definition pugl.h:823
#define PUGL_END_DECLS
Definition pugl.h:47
#define PUGL_API
Definition pugl.h:22
#define PUGL_BEGIN_DECLS
Definition pugl.h:46
#define PUGL_CONST_API
Definition pugl.h:42
#define void
Definition unzip.h:396