comparison OrthancStone/Sources/OpenGL/OpenGLTexture.h @ 2042:0fa4c0ca429d deep-learning

added OpenGLTexture::BindAsTextureUnit()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 Feb 2023 21:49:09 +0100
parents e0906b7c67b9
children 0b596428e60c
comparison
equal deleted inserted replaced
2041:85a20cbfcc04 2042:0fa4c0ca429d
84 void Load(const Orthanc::ImageAccessor& image, 84 void Load(const Orthanc::ImageAccessor& image,
85 bool isLinearInterpolation); 85 bool isLinearInterpolation);
86 86
87 void Bind(GLint location) const; 87 void Bind(GLint location) const;
88 88
89 void BindAsTextureUnit(GLint location,
90 unsigned int unit) const;
91
89 Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format) const; 92 Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format) const;
90 93
91 /** 94 /**
92 * By default, textures are mirrored at the borders. This 95 * By default, textures are mirrored at the borders. This
93 * function will set out-of-image access to zero. 96 * function will set out-of-image access to zero.