BsGLTextureManager.h 699 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "BsGLPrerequisites.h"
  3. #include "BsGLTexture.h"
  4. #include "BsGLSupport.h"
  5. #include "BsTextureManager.h"
  6. namespace BansheeEngine
  7. {
  8. /** GL-specific implementation of a TextureManager */
  9. class BS_RSGL_EXPORT GLTextureManager : public TextureManager
  10. {
  11. public:
  12. GLTextureManager(GLSupport& support);
  13. virtual ~GLTextureManager();
  14. /// @copydoc TextureManager::getNativeFormat
  15. PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage);
  16. protected:
  17. TexturePtr createTextureImpl();
  18. RenderTexturePtr createRenderTextureImpl();
  19. MultiRenderTexturePtr createMultiRenderTextureImpl();
  20. GLSupport& mGLSupport;
  21. };
  22. }