Graphics.h 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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,
  26. const WalrusRPG::Utils::Rect &window);
  27. /*
  28. * Sprite manipulation
  29. */
  30. unsigned short sprite_pixel_get(const unsigned short *sprite, unsigned x,
  31. unsigned y);
  32. }
  33. }
  34. #endif