Graphics.h 731 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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();
  14. void buffer_fill(unsigned color);
  15. /*
  16. * Misc LCD functions
  17. */
  18. void lcd_vsync();
  19. /*
  20. * Drawing
  21. */
  22. void draw_pixel(unsigned x, unsigned y, unsigned short color);
  23. void draw_sprite_sheet(const unsigned short *sheet, int x, int y, const WalrusRPG::Utils::Rect &window);
  24. /*
  25. * Sprite manipulation
  26. */
  27. unsigned short sprite_pixel_get(const unsigned short *sprite, unsigned x, unsigned y);
  28. }
  29. }
  30. #endif