comparison OrthancStone/Sources/Scene2D/Internals/OpenGLTextProgram.h @ 1576:92fca2b3ba3d

sanitizing the handling of canvas size
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 16:40:30 +0200
parents 85e117739eca
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
129 public: 129 public:
130 explicit OpenGLTextProgram(OpenGL::IOpenGLContext& context); 130 explicit OpenGLTextProgram(OpenGL::IOpenGLContext& context);
131 131
132 void Apply(OpenGL::OpenGLTexture& fontTexture, 132 void Apply(OpenGL::OpenGLTexture& fontTexture,
133 const Data& data, 133 const Data& data,
134 const AffineTransform2D& transform); 134 const AffineTransform2D& transform,
135 unsigned int canvasWidth,
136 unsigned int canvasHeight);
135 }; 137 };
136 } 138 }
137 } 139 }