DX9Texture.h 572 B

12345678910111213141516171819
  1. #pragma once
  2. #include "Texture.h"
  3. namespace Framework
  4. {
  5. //! Converts an image to a texture that can be passed to the graphics
  6. //! card for rendering
  7. class DX9Texture : public Texture
  8. {
  9. public:
  10. DX9Texture(TextureDirection dir);
  11. //! Updates the texture. The pixels of the current image are copied
  12. //! to graphics memory
  13. DLLEXPORT virtual bool updateTextur() override;
  14. //! Returns true if updateTextur needs to be called
  15. DLLEXPORT virtual bool needsUpdate() const override;
  16. };
  17. } // namespace Framework