source: trunk/sys/TinyGL/include/GL/oscontext.h @ 438

Last change on this file since 438 was 1, checked in by alain, 7 years ago

First import

File size: 819 bytes
Line 
1#ifndef _tgl_osbuffer_h_
2#define _tgl_osbuffer_h_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct {
9  void **zbs;
10  void **framebuffers;
11  int numbuffers;
12  int xsize, ysize;
13  int depth;
14  int bytes_per_line;
15} ostgl_context;
16
17ostgl_context *
18ostgl_create_context(const int xsize,
19                     const int ysize,
20                     const int depth,
21                     void **framebuffers,
22                     const int numbuffers);
23void
24ostgl_delete_context(ostgl_context *context);
25
26void
27ostgl_make_current(ostgl_context *context, const int index);
28
29void
30ostgl_resize(ostgl_context * context,
31             const int xsize,
32             const int ysize,
33             void **framebuffers);
34
35void
36ostgl_swap_buffers(ostgl_context *context);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif /* _tgl_osbuffer_h_ */
Note: See TracBrowser for help on using the repository browser.