File: fbo.h

package info (click to toggle)
openscad 2011.12-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,080 kB
  • sloc: cpp: 19,710; python: 990; yacc: 558; sh: 537; ansic: 522; lex: 221; lisp: 147; xml: 36; makefile: 35
file content (25 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef FBO_H_
#define FBO_H_

#include "system-gl.h"
#include <stddef.h> // size_t

struct fbo_t
{
  GLuint fbo_id;
  GLuint old_fbo_id;

  GLuint renderbuf_id;
  GLuint depthbuf_id;
};

fbo_t *fbo_new();
bool fbo_init(fbo_t *fbo, size_t width, size_t height);
bool fbo_resize(fbo_t *fbo, size_t width, size_t height);
void fbo_delete(fbo_t *fbo);
GLuint fbo_bind(fbo_t *fbo);
void fbo_unbind(fbo_t *fbo);

bool REPORTGLERROR(const char * task);

#endif