mirror of
https://codeberg.org/ACM/TinyGL-C89.git
synced 2025-08-17 05:03:32 -04:00
Add C89 support
Allow compilation from C89 compilers.
This commit is contained in:
parent
fb4cb83981
commit
9a779bf1a1
66 changed files with 12202 additions and 0 deletions
29
include/GL/nglx.h
Normal file
29
include/GL/nglx.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#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 --- */
|
||||
Loading…
Add table
Add a link
Reference in a new issue