Browse Source

Update TODOs

rexim 3 years ago
parent
commit
5ff8b04184
3 changed files with 5 additions and 2 deletions
  1. 4 0
      demos/vc.c
  2. 1 0
      olive.c
  3. 0 2
      test.c

+ 4 - 0
demos/vc.c

@@ -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
 // $ 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 WASM_PLATFORM 0
 #define SDL_PLATFORM 1
 #define SDL_PLATFORM 1
 #define TERM_PLATFORM 2
 #define TERM_PLATFORM 2

+ 1 - 0
olive.c

@@ -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: 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)
 void olivec_copy(Olivec_Canvas src, Olivec_Canvas dst)
 {
 {
     for (size_t y = 0; y < dst.height; ++y) {
     for (size_t y = 0; y < dst.height; ++y) {

+ 0 - 2
test.c

@@ -346,8 +346,6 @@ Test_Case test_cases[] = {
 };
 };
 #define TEST_CASES_COUNT (sizeof(test_cases)/sizeof(test_cases[0]))
 #define TEST_CASES_COUNT (sizeof(test_cases)/sizeof(test_cases[0]))
 
 
-// TODO: add tests for text rendering
-
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
     int result = 0;
     int result = 0;