#pragma once

namespace fn::gfx {

struct Framebuffer {
    unsigned int fbo = 0;
    unsigned int tex = 0;  // GL_RGBA8, clamp, linear
    int width = 0;
    int height = 0;
};

void fb_init(Framebuffer& f);                 // crea fbo+tex 1x1 iniciales
void fb_resize(Framebuffer& f, int w, int h); // no-op si w,h iguales
void fb_destroy(Framebuffer& f);

} // namespace fn::gfx
