changeset 615:b4de8272e8fb

constness
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2019 10:35:42 +0200
parents 4ec32d4d0867
children 97926984d5d0
files Applications/Sdl/SdlOpenGLWindow.cpp Applications/Sdl/SdlOpenGLWindow.h Framework/OpenGL/IOpenGLContext.h
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Sdl/SdlOpenGLWindow.cpp	Tue Apr 30 16:59:48 2019 +0200
+++ b/Applications/Sdl/SdlOpenGLWindow.cpp	Thu May 02 10:35:42 2019 +0200
@@ -102,7 +102,7 @@
   }
 
   
-  unsigned int SdlOpenGLWindow::GetCanvasWidth()
+  unsigned int SdlOpenGLWindow::GetCanvasWidth() const
   {
     int w = 0;
     SDL_GL_GetDrawableSize(window_.GetObject(), &w, NULL);
@@ -110,7 +110,7 @@
   }
 
   
-  unsigned int SdlOpenGLWindow::GetCanvasHeight()
+  unsigned int SdlOpenGLWindow::GetCanvasHeight() const
   {
     int h = 0;
     SDL_GL_GetDrawableSize(window_.GetObject(), NULL, &h);
--- a/Applications/Sdl/SdlOpenGLWindow.h	Tue Apr 30 16:59:48 2019 +0200
+++ b/Applications/Sdl/SdlOpenGLWindow.h	Thu May 02 10:35:42 2019 +0200
@@ -50,9 +50,9 @@
 
     virtual void SwapBuffer();
 
-    virtual unsigned int GetCanvasWidth();
+    virtual unsigned int GetCanvasWidth() const;
 
-    virtual unsigned int GetCanvasHeight();
+    virtual unsigned int GetCanvasHeight() const;
   };
 }
 
--- a/Framework/OpenGL/IOpenGLContext.h	Tue Apr 30 16:59:48 2019 +0200
+++ b/Framework/OpenGL/IOpenGLContext.h	Thu May 02 10:35:42 2019 +0200
@@ -38,9 +38,9 @@
 
       virtual void SwapBuffer() = 0;
 
-      virtual unsigned int GetCanvasWidth() = 0;
+      virtual unsigned int GetCanvasWidth() const = 0;
 
-      virtual unsigned int GetCanvasHeight() = 0;
+      virtual unsigned int GetCanvasHeight() const = 0;
     };
   }
 }