mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
TinyGL example
This commit is contained in:
parent
7313047fd1
commit
065d2c64aa
72 changed files with 12965 additions and 0 deletions
27
apps/tinygl/src/TinyGL/include/GL/nglx.h
Normal file
27
apps/tinygl/src/TinyGL/include/GL/nglx.h
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue