aboutsummaryrefslogtreecommitdiff
path: root/pacc/pacc.h
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-14 18:57:05 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-14 18:57:05 +0900
commit1ff3793322585443909d11284457811c461f8de4 (patch)
tree2ae703afca718f12137ec0a59ec67cfc2383bb2f /pacc/pacc.h
parent3e9da829c4ea58363a41f0e4e04124d4090ed6f3 (diff)
pacc: add viewport
Diffstat (limited to 'pacc/pacc.h')
-rw-r--r--pacc/pacc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pacc/pacc.h b/pacc/pacc.h
index b3387ac..30e7ab2 100644
--- a/pacc/pacc.h
+++ b/pacc/pacc.h
@@ -46,6 +46,7 @@ struct pacc_vtable {
void (*color)(struct pacc_ctx *ctx, uint8_t pal);
void (*begin_clear)(struct pacc_ctx *ctx);
void (*draw)(struct pacc_ctx *ctx, struct pacc_buf *buf, enum pacc_mode mode);
+ void (*viewport_scale)(struct pacc_ctx *ctx, int scale);
};
struct pacc_ctx *pacc_init_gl(int w, int h, struct pacc_vtable *vt);