Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/Internals/OpenGLColorTextureProgram.h @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 92fca2b3ba3d |
comparison
equal
deleted
inserted
replaced
1570:9a04f42098a3 | 1571:85e117739eca |
---|---|
27 { | 27 { |
28 namespace Internals | 28 namespace Internals |
29 { | 29 { |
30 class OpenGLColorTextureProgram : public boost::noncopyable | 30 class OpenGLColorTextureProgram : public boost::noncopyable |
31 { | 31 { |
32 private: | |
33 OpenGLTextureProgram program_; | |
34 OpenGL::IOpenGLContext& context_; | |
35 | |
32 public: | 36 public: |
33 OpenGLColorTextureProgram(OpenGL::IOpenGLContext& context); | 37 explicit OpenGLColorTextureProgram(OpenGL::IOpenGLContext& context); |
34 | 38 |
35 void Apply(OpenGL::OpenGLTexture& texture, | 39 void Apply(OpenGL::OpenGLTexture& texture, |
36 const AffineTransform2D& transform, | 40 const AffineTransform2D& transform, |
37 bool useAlpha); | 41 bool useAlpha); |
38 private: | |
39 OpenGLTextureProgram program_; | |
40 OpenGL::IOpenGLContext& context_; | |
41 }; | 42 }; |
42 } | 43 } |
43 } | 44 } |