BsGLTextureView.h 779 B

1234567891011121314151617181920212223242526272829303132
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsGLPrerequisites.h"
  5. #include "BsTextureView.h"
  6. namespace bs { namespace ct
  7. {
  8. /** @addtogroup GL
  9. * @{
  10. */
  11. /** OpenGL implementation of a texture resource view. */
  12. class GLTextureView : public TextureView
  13. {
  14. public:
  15. ~GLTextureView();
  16. /** Returns internal OpenGL texture view handle. */
  17. GLuint getGLID() const { return mViewID; }
  18. protected:
  19. friend class GLTexture;
  20. GLTextureView(const GLTexture* texture, const TEXTURE_VIEW_DESC& desc);
  21. private:
  22. GLuint mViewID;
  23. };
  24. /** @} */
  25. }}