|
|
1d641c |
#ifndef HELI_FRAMEBUFFER_H
|
|
|
1d641c |
#define HELI_FRAMEBUFFER_H
|
|
|
1d641c |
|
|
|
1d641c |
|
|
|
1d641c |
#include "common.h"
|
|
|
1d641c |
|
|
|
1d641c |
typedef struct _Framebuffer *Framebuffer;
|
|
|
1d641c |
|
|
|
1d641c |
|
|
|
1d641c |
Framebuffer createFramebuffer(int width, int height);
|
|
|
1d641c |
Framebuffer createFramebufferEx(int width, int height, const void *pixels, int horWrap, int vertWrap, int smooth);
|
|
|
1d641c |
Framebuffer createFramebufferFromFile(const char *path);
|
|
|
1d641c |
void framebufferDestroy(Framebuffer framebuffer);
|
|
|
1d641c |
|
|
|
909bc2 |
void framebufferFlush(Framebuffer framebuffer);
|
|
|
1d641c |
int framebufferGetWidth(Framebuffer framebuffer);
|
|
|
1d641c |
int framebufferGetHeight(Framebuffer framebuffer);
|
|
|
1d641c |
unsigned int framebufferGetGLTexId(Framebuffer framebuffer);
|
|
|
1d641c |
unsigned int framebufferGetGLId(Framebuffer framebuffer);
|
|
|
1d641c |
|
|
|
1d641c |
|
|
|
1d641c |
#endif
|