blob: a5f80053eebaffb038968f53122ff48c165ca993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
#include "editor.h"
#include <stdbool.h>
struct redr_ctx;
void redr_init(struct redr_ctx **ctxp, float width, float height,
float font_size, float font_spacing, const char *title);
bool redr_should_close(struct redr_ctx *ctx);
void redr_resize(struct redr_ctx *ctx, float width, float height);
void redr_draw(struct redr_ctx *ctx, const struct ed_buf *eb);
void redr_free(struct redr_ctx *ctx);
|