# HG changeset patch # User Sebastien Jodogne # Date 1682348963 -7200 # Node ID c0627145b441ee2502e48a7a1300e2e9a083e89f # Parent 8bb8d9c0cfd027d610160529a65be1e6fd70e817 added OpenGLTexture::IsLinearInterpolation() diff -r 8bb8d9c0cfd0 -r c0627145b441 OrthancStone/Sources/OpenGL/OpenGLTexture.cpp --- 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); diff -r 8bb8d9c0cfd0 -r c0627145b441 OrthancStone/Sources/OpenGL/OpenGLTexture.h --- a/OrthancStone/Sources/OpenGL/OpenGLTexture.h Fri Apr 21 14:39:23 2023 +0200 +++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.h Mon Apr 24 17:09:23 2023 +0200 @@ -44,6 +44,7 @@ Orthanc::PixelFormat format_; OpenGL::IOpenGLContext& context_; + bool isLinearInterpolation_; void Setup(Orthanc::PixelFormat format, unsigned int width, @@ -80,6 +81,11 @@ return height_; } + bool IsLinearInterpolation() const + { + return isLinearInterpolation_; + } + void Setup(Orthanc::PixelFormat format, unsigned int width, unsigned int height,