#ifndef INCLUDE_TEXTURE_H #define INCLUDE_TEXTURE_H /* * Texture.h * Texture backend abstraction */ #include "utility/Rect.h" #include "platform.h" #include "render/Pixel.h" //#include "PLATFORM/texture_type.h" namespace WalrusRPG { namespace Graphics { // This class only exists to get the common functions class Texture { private: texture_data_t texture; unsigned width; unsigned height; public: // The get function is implemented by the child // TextureHolder &get_texture(); Texture(char *data); ~Texture(); // Getters WalrusRPG::Utils::Rect get_dimensions(); const WalrusRPG::Graphics::Pixel get_pixel(unsigned x, unsigned y); }; } } #endif