aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/tinygl-0.4-ugfx/include/GL/nglx.h
blob: d2f6114ff974e60cf6416811b6d53e83adedb633 (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
#ifndef NGLX_H
#define NGLX_H

#include <microwin/nano-X.h>
#include <GL/gl.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *NGLXContext;
typedef GR_DRAW_ID NGLXDrawable;

extern NGLXContext nglXCreateContext( NGLXContext shareList, int flags );

extern void nglXDestroyContext( NGLXContext ctx );

extern int nglXMakeCurrent( NGLXDrawable drawable,
			    NGLXContext ctx);

extern void nglXSwapBuffers( NGLXDrawable drawable );

#ifdef __cplusplus
}
#endif

#endif