taisei/src/fbo.h
2017-10-31 08:57:32 +02:00

27 lines
602 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (c) 2011-2017, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2017, Andrei Alexeyev <akari@alienslab.net>.
*/
#pragma once
#include "taiseigl.h"
typedef struct {
GLuint fbo;
GLuint tex;
GLuint depth;
int nw, nh;
float scale;
} FBO;
void init_fbo(FBO *fbo, float scale, int type);
void reinit_fbo(FBO *fbo, float scale, int type);
void draw_fbo(FBO *fbo);
void draw_fbo_viewport(FBO *fbo);
void delete_fbo(FBO *fbo);
void swap_fbos(FBO **fbo1, FBO **fbo2);