#pragma once

#include <stdint.h>
#include <stdbool.h>

struct Renderer;

struct RendererDesc {
    void    *window_handle = nullptr;
    int32_t  width         = 1280;
    int32_t  height        = 720;
    int32_t  frame_count   = 2;
};

Renderer *renderer_create(RendererDesc *desc);
void      renderer_destroy(Renderer *renderer);
bool      renderer_begin_frame(Renderer *renderer);
void      renderer_end_frame(Renderer *renderer);
void      renderer_resize(Renderer *renderer, int32_t width, int32_t height);
