Graphics.h 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /*
  21. * Drawing
  22. */
  23. void draw_pixel(unsigned x, unsigned y, unsigned short color);
  24. void draw_sprite_sheet(const unsigned short *sheet, int x, int y, const WalrusRPG::Utils::Rect &window);
  25. /*
  26. * Sprite manipulation
  27. */
  28. unsigned short sprite_pixel_get(const unsigned short *sprite, unsigned x, unsigned y);
  29. }
  30. }
  31. #endif