Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLTexture.h @ 2047:0b596428e60c deep-learning
added OpenGLTexture::GetFormat()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Mar 2023 11:00:55 +0100 |
parents | 0fa4c0ca429d |
children | c0627145b441 |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.h Mon Mar 06 09:04:10 2023 +0100 +++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.h Mon Mar 06 11:00:55 2023 +0100 @@ -41,6 +41,8 @@ GLuint texture_; unsigned int width_; unsigned int height_; + + Orthanc::PixelFormat format_; OpenGL::IOpenGLContext& context_; void Setup(Orthanc::PixelFormat format, @@ -63,6 +65,11 @@ return texture_; } + Orthanc::PixelFormat GetFormat() const + { + return format_; + } + unsigned int GetWidth() const { return width_;