2019-08-25 01:28:46 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT License.
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
|
|
|
*/
|
2019-08-25 01:28:46 +02:00
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2019-08-25 01:28:46 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
#include "renderer/api.h"
|
|
|
|
|
|
|
|
typedef struct FBAttachmentConfig {
|
|
|
|
FramebufferAttachment attachment;
|
|
|
|
TextureParams tex_params;
|
|
|
|
} FBAttachmentConfig;
|
|
|
|
|
|
|
|
void fbutil_create_attachments(Framebuffer *fb, uint num_attachments, FBAttachmentConfig attachments[num_attachments]);
|
|
|
|
void fbutil_destroy_attachments(Framebuffer *fb);
|
|
|
|
void fbutil_resize_attachment(Framebuffer *fb, FramebufferAttachment attachment, uint width, uint height);
|