Texture.h 673 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef INCLUDE_TEXTURE_H
  2. #define INCLUDE_TEXTURE_H
  3. /*
  4. * Texture.h
  5. * Texture backend abstraction
  6. */
  7. #include "utility/Rect.h"
  8. #include "platform.h"
  9. #include "render/Pixel.h"
  10. //#include "PLATFORM/texture_type.h"
  11. namespace WalrusRPG
  12. {
  13. namespace Graphics
  14. {
  15. // This class only exists to get the common functions
  16. class Texture
  17. {
  18. private:
  19. public:
  20. texture_data_t data;
  21. Texture(char *data);
  22. ~Texture();
  23. // Getters
  24. WalrusRPG::Utils::Rect get_dimensions();
  25. const WalrusRPG::Graphics::Pixel get_pixel(unsigned x, unsigned y);
  26. };
  27. }
  28. }
  29. #endif