changeset 2039:e0906b7c67b9 deep-learning

const
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 28 Jan 2023 15:48:01 +0100
parents a72ca4959aa6
children c6263f514f54
files OrthancStone/Sources/OpenGL/OpenGLTexture.cpp OrthancStone/Sources/OpenGL/OpenGLTexture.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp	Sat Jan 28 13:03:14 2023 +0100
+++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.cpp	Sat Jan 28 15:48:01 2023 +0100
@@ -148,7 +148,7 @@
     }
 
 
-    void OpenGLTexture::Bind(GLint location)
+    void OpenGLTexture::Bind(GLint location) const
     {
       glActiveTexture(GL_TEXTURE0);
       glBindTexture(GL_TEXTURE_2D, texture_);
@@ -156,7 +156,7 @@
     }
 
 
-    Orthanc::ImageAccessor* OpenGLTexture::Download(Orthanc::PixelFormat format)
+    Orthanc::ImageAccessor* OpenGLTexture::Download(Orthanc::PixelFormat format) const
     {
       if (context_.IsContextLost())
       {
--- a/OrthancStone/Sources/OpenGL/OpenGLTexture.h	Sat Jan 28 13:03:14 2023 +0100
+++ b/OrthancStone/Sources/OpenGL/OpenGLTexture.h	Sat Jan 28 15:48:01 2023 +0100
@@ -84,9 +84,9 @@
       void Load(const Orthanc::ImageAccessor& image,
                 bool isLinearInterpolation);
 
-      void Bind(GLint location);
+      void Bind(GLint location) const;
 
-      Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format);
+      Orthanc::ImageAccessor* Download(Orthanc::PixelFormat format) const;
 
       /**
        * By default, textures are mirrored at the borders. This