1 #ifndef OPENGL_FRAMEBUFFER_H_
2 #define OPENGL_FRAMEBUFFER_H_
4 /* show pixels with OpenGL
7 * glfb_setup(width, height, GLFB_RGBA32, width * 4);
13 enum glfb_pixel_format {
18 GLFB_RGBA32 /* 8888 (alpha ignored) */
26 void glfb_setup(int x, int y, enum glfb_pixel_format fmt, int pitch);
27 void glfb_filter(enum glfb_filter filt);
28 void glfb_color(int idx, int r, int g, int b);
29 void glfb_update(void *pixels);
30 void glfb_display(void);
32 #endif /* OPENGL_FRAMEBUFFER_H_ */