Texture.h 750 B

123456789101112131415161718192021222324252627282930313233343536
  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 "piaf/Archive.h"
  11. //#include "PLATFORM/texture_type.h"
  12. namespace WalrusRPG
  13. {
  14. namespace Graphics
  15. {
  16. // This class only exists to get the common functions
  17. class Texture
  18. {
  19. private:
  20. public:
  21. texture_data_t data;
  22. Texture(WalrusRPG::PIAF::File& entry);
  23. Texture(char *data);
  24. ~Texture();
  25. // Getters
  26. WalrusRPG::Utils::Rect get_dimensions();
  27. const WalrusRPG::Graphics::Pixel get_pixel(unsigned x, unsigned y);
  28. };
  29. }
  30. }
  31. #endif