| Rev | Line | |
|---|
| [1] | 1 | #ifndef _tgl_osbuffer_h_ |
|---|
| 2 | #define _tgl_osbuffer_h_ |
|---|
| 3 | |
|---|
| 4 | #ifdef __cplusplus |
|---|
| 5 | extern "C" { |
|---|
| 6 | #endif |
|---|
| 7 | |
|---|
| 8 | typedef 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 | |
|---|
| 17 | ostgl_context * |
|---|
| 18 | ostgl_create_context(const int xsize, |
|---|
| 19 | const int ysize, |
|---|
| 20 | const int depth, |
|---|
| 21 | void **framebuffers, |
|---|
| 22 | const int numbuffers); |
|---|
| 23 | void |
|---|
| 24 | ostgl_delete_context(ostgl_context *context); |
|---|
| 25 | |
|---|
| 26 | void |
|---|
| 27 | ostgl_make_current(ostgl_context *context, const int index); |
|---|
| 28 | |
|---|
| 29 | void |
|---|
| 30 | ostgl_resize(ostgl_context * context, |
|---|
| 31 | const int xsize, |
|---|
| 32 | const int ysize, |
|---|
| 33 | void **framebuffers); |
|---|
| 34 | |
|---|
| 35 | void |
|---|
| 36 | ostgl_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.