Add TODOs and make texture size squared

This commit is contained in:
Joseph Ferano 2023-10-08 21:38:55 +07:00
parent 6c23b1a0c7
commit 7cc36d4f54
2 changed files with 18 additions and 1 deletions

17
game/ennix.todo Normal file
View File

@ -0,0 +1,17 @@
#-*- mode: org -*-
#+TODO: BUG TODO | DONE
#+STARTUP: show2levels
* DONE Load images with stb_image
* DONE Check if images exist
* DONE Determine minimum size of output image
* DONE Write images to correct regions in output buffer
* TODO Generate a Rect data structure that determines where an image goes
* TODO Write to the rect rather than global values
* TODO Research simple texture packing algorithms
* TODO Implement one?
* TODO Take an =-o= flag for the name of the output file
* TODO Write a description on how to use the application
* TODO Figure out how to better structure/organize this project
* TODO Write unit tests
* TODO Figure out how to profile performance

View File

@ -111,7 +111,7 @@ int main(int argc, char* argv[]) {
}
}
stbi_write_png("test.png", maxw, totalh, 4, buf, maxw * 4);
stbi_write_png("test.png", max, max, 4, buf, maxw * 4);
//-------------------------------------
// Free them all, but eventually we would free after we finished 1