Graphics.h 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef INCLUDE_GRAPHICS_H
  2. #define INCLUDE_GRAPHICS_H
  3. #include "Rect.h"
  4. namespace WalrusRPG
  5. {
  6. namespace Graphics
  7. {
  8. /*
  9. * Buffer management
  10. */
  11. void buffer_allocate();
  12. void buffer_free();
  13. void buffer_swap_screen();
  14. void buffer_swap_render();
  15. void buffer_fill(unsigned color);
  16. /*
  17. * Misc LCD functions
  18. */
  19. void lcd_vsync();
  20. void vsync_isr();
  21. /*
  22. * Drawing
  23. */
  24. void draw_pixel(unsigned x, unsigned y, unsigned short color);
  25. void draw_sprite_sheet(const unsigned short *sheet, int x, int y, const WalrusRPG::Utils::Rect &window);
  26. /*
  27. * Sprite manipulation
  28. */
  29. unsigned short sprite_pixel_get(const unsigned short *sprite, unsigned x, unsigned y);
  30. }
  31. }
  32. #endif