Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Internals/OpenGLColorTextureProgram.h @ 947:1091b2adeb5a toa2019081001
Fixed animation frame stopping when returning false + big work on the OpenGL
objects to make them lost context-safe + debug code to forcefully tag a
context as lost + debug macros
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sat, 10 Aug 2019 13:07:31 +0200 |
parents | b66ced2c43d4 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
946:dbe3e1e47019 | 947:1091b2adeb5a |
---|---|
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 | |
35 public: | 32 public: |
36 OpenGLColorTextureProgram(OpenGL::IOpenGLContext& context); | 33 OpenGLColorTextureProgram(OpenGL::IOpenGLContext& context); |
37 | 34 |
38 void Apply(OpenGL::OpenGLTexture& texture, | 35 void Apply(OpenGL::OpenGLTexture& texture, |
39 const AffineTransform2D& transform, | 36 const AffineTransform2D& transform, |
40 bool useAlpha); | 37 bool useAlpha); |
38 private: | |
39 OpenGLTextureProgram program_; | |
40 OpenGL::IOpenGLContext& context_; | |
41 }; | 41 }; |
42 } | 42 } |
43 } | 43 } |