Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLTexture.cpp @ 2058:c0627145b441 deep-learning
added OpenGLTexture::IsLinearInterpolation()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 24 Apr 2023 17:09:23 +0200 |
parents | 66c130af0d3c |
children | 86e0e92a2e0d |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp Fri Apr 21 14:39:23 2023 +0200 +++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp Mon Apr 24 17:09:23 2023 +0200 @@ -43,7 +43,8 @@ width_(0), height_(0), format_(Orthanc::PixelFormat_Grayscale8), - context_(context) + context_(context), + isLinearInterpolation_(false) { if (!context_.IsContextLost()) { @@ -116,6 +117,7 @@ format_ = format; width_ = width; height_ = height; + isLinearInterpolation_ = isLinearInterpolation; GLint interpolation = (isLinearInterpolation ? GL_LINEAR : GL_NEAREST);