You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
424 B

  1. #include "types.h"
  2. #include "util.h"
  3. #include "Spark.h"
  4. #include "UI.h"
  5. static Picture *pictures[2];
  6. void
  7. Spark_load_pix() {
  8. int i;
  9. for (i = 0; i < 2; i++)
  10. UI_load_picture_indexed("spark", i, 1, &pictures[i]);
  11. }
  12. int
  13. Spark_width() {
  14. return UI_picture_width(pictures[0]);
  15. }
  16. int
  17. Spark_height() {
  18. return UI_picture_height(pictures[0]);
  19. }
  20. void
  21. Spark_draw(int x, int y, int index) {
  22. UI_draw(pictures[index], x, y);
  23. }