#pragma once

// sokol_setup — helpers para inicializar sokol_gfx sobre un GL context
// creado por SDL3 (no por sokol_app). Issue 0072b.
//
// Uso tipico:
//   SDL_Window* w = SDL_CreateWindow(...);
//   SDL_GLContext gl = SDL_GL_CreateContext(w);
//   sg_setup({ .environment = fn::gfx::make_environment(),
//              .logger.func = slog_func });
//   ...
//   sg_pass p{}; p.swapchain = fn::gfx::make_swapchain(width, height);
//   sg_begin_pass(&p);

#include "sokol_gfx.h"

namespace fn::gfx {

// Default environment for an SDL3-managed GL context.
// color RGBA8, depth+stencil, no MSAA. Override fields as needed.
sg_environment make_environment();

// Build a default swapchain for the current SDL3 window framebuffer.
// Pass current drawable dimensions in pixels.
sg_swapchain make_swapchain(int width, int height);

}  // namespace fn::gfx
