| 123456789101112131415161718192021222324252627282930313233343536 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsGLPrerequisites.h"
- #include "RenderAPI/BsTextureView.h"
- namespace bs { namespace ct
- {
- /** @addtogroup GL
- * @{
- */
- /** OpenGL implementation of a texture resource view. */
- class GLTextureView : public TextureView
- {
- public:
- ~GLTextureView();
- /** Returns internal OpenGL texture view handle. */
- GLuint getGLID() const { return mViewID; }
- /** Returns OpenGL texture target type. */
- GLuint getGLTextureTarget() const { return mTarget; }
- protected:
- friend class GLTexture;
- GLTextureView(const GLTexture* texture, const TEXTURE_VIEW_DESC& desc);
- private:
- GLuint mViewID;
- GLuint mTarget;
- };
- /** @} */
- }}
|