comparison Applications/Sdl/SdlOpenGLWindow.cpp @ 615:b4de8272e8fb

constness
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2019 10:35:42 +0200
parents 4ec32d4d0867
children 002d9562c8f5
comparison
equal deleted inserted replaced
614:4ec32d4d0867 615:b4de8272e8fb
100 // Swap our buffer to display the current contents of buffer on screen 100 // Swap our buffer to display the current contents of buffer on screen
101 SDL_GL_SwapWindow(window_.GetObject()); 101 SDL_GL_SwapWindow(window_.GetObject());
102 } 102 }
103 103
104 104
105 unsigned int SdlOpenGLWindow::GetCanvasWidth() 105 unsigned int SdlOpenGLWindow::GetCanvasWidth() const
106 { 106 {
107 int w = 0; 107 int w = 0;
108 SDL_GL_GetDrawableSize(window_.GetObject(), &w, NULL); 108 SDL_GL_GetDrawableSize(window_.GetObject(), &w, NULL);
109 return static_cast<unsigned int>(w); 109 return static_cast<unsigned int>(w);
110 } 110 }
111 111
112 112
113 unsigned int SdlOpenGLWindow::GetCanvasHeight() 113 unsigned int SdlOpenGLWindow::GetCanvasHeight() const
114 { 114 {
115 int h = 0; 115 int h = 0;
116 SDL_GL_GetDrawableSize(window_.GetObject(), NULL, &h); 116 SDL_GL_GetDrawableSize(window_.GetObject(), NULL, &h);
117 return static_cast<unsigned int>(h); 117 return static_cast<unsigned int>(h);
118 } 118 }