@@ -29,6 +29,10 @@
// $ clang -fno-builtin --target=wasm32 --no-standard-libraries -Wl,--no-entry -Wl,--export=render -Wl,--allow-undefined -o demo.wasm -DPLATFORM=WASM_PLATFORM demo.c
// ```
+
+// TODO: prefix VC api elements with vc_*
+// Like vc_render, VC_WASM_PLATFORM, VC_SCALE_DOWN_FACTOR, etc.
#define WASM_PLATFORM 0
#define SDL_PLATFORM 1
#define TERM_PLATFORM 2
@@ -547,6 +547,7 @@ OLIVECDEF void olivec_text(Olivec_Canvas oc, const char *text, int tx, int ty, O
}
// TODO: olivec_copy does not work correctly with dst out of bounds
+// TODO: bilinear interpolation for olivec_copy
void olivec_copy(Olivec_Canvas src, Olivec_Canvas dst)
{
for (size_t y = 0; y < dst.height; ++y) {
@@ -346,8 +346,6 @@ Test_Case test_cases[] = {
};
#define TEST_CASES_COUNT (sizeof(test_cases)/sizeof(test_cases[0]))
-// TODO: add tests for text rendering
-
int main(int argc, char **argv)
int result = 0;