taisei/src/fbo.h
2012-07-20 13:18:25 +02:00

27 lines
No EOL
419 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef FBO_H
#define FBO_H
#include <GL/gl.h>
#include <GL/glext.h>
typedef struct {
GLuint fbo;
GLuint tex;
GLuint depth;
int nw,nh;
} FBO;
void init_fbo(FBO *fbo);
void draw_fbo_viewport(FBO *fbo);
void delete_fbo(FBO *fbo);
#endif