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
39
include/GL/oscontext.h
Normal file
39
include/GL/oscontext.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef _tgl_osbuffer_h_
|
||||
#define _tgl_osbuffer_h_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
void **zbs;
|
||||
void **framebuffers;
|
||||
int numbuffers;
|
||||
int xsize, ysize;
|
||||
} ostgl_context;
|
||||
|
||||
ostgl_context *
|
||||
ostgl_create_context(const int xsize,
|
||||
const int ysize,
|
||||
const int depth,
|
||||
void **framebuffers,
|
||||
const int numbuffers);
|
||||
void
|
||||
ostgl_delete_context(ostgl_context *context);
|
||||
|
||||
void
|
||||
ostgl_make_current(ostgl_context *context, const int index);
|
||||
|
||||
void
|
||||
ostgl_resize(ostgl_context * context,
|
||||
const int xsize,
|
||||
const int ysize,
|
||||
void **framebuffers);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _tgl_osbuffer_h_ */
|
||||
|
||||
/* --- end of OSCONTEXT_H --- */
|
||||
Loading…
Add table
Add a link
Reference in a new issue