Texture.h 632 B

12345678910111213141516171819202122232425262728293031
  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/texture_type.h"
  9. namespace WalrusRPG
  10. {
  11. namespace Graphics
  12. {
  13. // This class only exists to get the common functions
  14. class Texture
  15. {
  16. private:
  17. // texture_type_t texture;
  18. public:
  19. // The get function is implemented by the child
  20. // TextureHolder &get_texture();
  21. Texture(char *data);
  22. ~Texture();
  23. WalrusRPG::Utils::Rect get_dimensions();
  24. };
  25. }
  26. }
  27. #endif