Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/OpenGLTexture.h @ 2035:a73a8415780f deep-learning
added OpenGLTexture::SetClampingToZero()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Jan 2023 19:03:47 +0100 |
parents | 4b24b7533346 |
children | d81a7157a846 |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.h Fri Jan 27 15:43:24 2023 +0100 +++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.h Fri Jan 27 19:03:47 2023 +0100 @@ -83,6 +83,12 @@ void Bind(GLint location); Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format); + + /** + * By default, textures are mirrored at the borders. This + * function will set out-of-image access to zero. + **/ + void SetClampingToZero(); }; } }