1 /* 2 * This software is licensed under the terms of the MIT License. 3 * See COPYING for further information. 4 * --- 5 * Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>. 6 * Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>. 7 */ 8 9 #ifndef IGUARD_util_fbutil_h 10 #define IGUARD_util_fbutil_h 11 12 #include "taisei.h" 13 14 #include "renderer/api.h" 15 16 typedef struct FBAttachmentConfig { 17 FramebufferAttachment attachment; 18 TextureParams tex_params; 19 } FBAttachmentConfig; 20 21 void fbutil_create_attachments(Framebuffer *fb, uint num_attachments, FBAttachmentConfig attachments[num_attachments]); 22 void fbutil_destroy_attachments(Framebuffer *fb); 23 void fbutil_resize_attachment(Framebuffer *fb, FramebufferAttachment attachment, uint width, uint height); 24 25 #endif // IGUARD_util_fbutil_h 26