-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRR_context.h
More file actions
30 lines (22 loc) · 1.17 KB
/
RR_context.h
File metadata and controls
30 lines (22 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "RR.h"
#include "Conscreen/List/List.h"
#include "Conscreen/Conscreen_screen.h"
typedef Conscreen_pixel RR_pixel;
typedef void (*RR_set_function)(RR_context context, int16_t x, int16_t y, RR_pixel pixel);
typedef RR_pixel (*RR_get_function)(RR_context context, int16_t x, int16_t y);
void RR_set(RR_context context, int16_t x, int16_t y, RR_pixel pixel);
RR_pixel RR_get(RR_context context, int16_t x, int16_t y);
void RR_data_set(RR_context context, void* data);
void* RR_data_get(RR_context context);
RR_point RR_size_get(RR_context context);
void RR_render(RR_context context, RR_point new_size, RR_get_function getScreen,
RR_set_function setScreen, void *data);
RR_context RR_context_create();
void RR_context_free(RR_context context);
void RR_context_chain_set(RR_context context, LIST(RR_renderer) renderers);
void RR_context_make_chain(RR_context context, int count, ...);
void RR_set_default(RR_context context, int16_t x, int16_t y, RR_pixel pixel);
RR_pixel RR_get_default(RR_context context, int16_t x, int16_t y);
RR_pixel RR_get_offset(RR_context ctx, int16_t x, int16_t y);
void RR_set_offset(RR_context ctx, int16_t x, int16_t y, RR_pixel p);