TinyGL-C89/include/GL/nglx.h
Aidan Mullen 9a779bf1a1 Add C89 support
Allow compilation from C89 compilers.
2024-07-08 09:27:12 -04:00

29 lines
507 B
C

#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
/* --- end of NGLX_H --- */