BsGLMultiRenderTexture.h 691 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "BsGLPrerequisites.h"
  3. #include "BsMultiRenderTexture.h"
  4. #include "BsGLFrameBufferObject.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_RSGL_EXPORT GLMultiRenderTexture : public MultiRenderTexture
  8. {
  9. public:
  10. virtual ~GLMultiRenderTexture();
  11. bool requiresTextureFlipping() const { return true; }
  12. void getCustomAttribute(const String& name, void* pData) const;
  13. protected:
  14. friend class GLTextureManager;
  15. GLMultiRenderTexture();
  16. /**
  17. * @copydoc MultiRenderTexture::initialize_internal().
  18. */
  19. void initialize_internal();
  20. /**
  21. * @copydoc MultiRenderTexture::destroy_internal().
  22. */
  23. void destroy_internal();
  24. private:
  25. GLFrameBufferObject* mFB;
  26. };
  27. }