Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Internals/OpenGLColorTextureRenderer.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 | 6e888cf6a48b |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
946:dbe3e1e47019 | 947:1091b2adeb5a |
---|---|
30 namespace Internals | 30 namespace Internals |
31 { | 31 { |
32 class OpenGLColorTextureRenderer : public CompositorHelper::ILayerRenderer | 32 class OpenGLColorTextureRenderer : public CompositorHelper::ILayerRenderer |
33 { | 33 { |
34 private: | 34 private: |
35 OpenGL::IOpenGLContext& context_; | 35 OpenGL::IOpenGLContext& context_; |
36 OpenGLColorTextureProgram& program_; | 36 OpenGLColorTextureProgram& program_; |
37 std::auto_ptr<OpenGL::OpenGLTexture> texture_; | 37 std::auto_ptr<OpenGL::OpenGLTexture> texture_; |
38 AffineTransform2D layerTransform_; | 38 AffineTransform2D layerTransform_; |
39 | 39 |
40 void LoadTexture(const ColorTextureSceneLayer& layer); | 40 void LoadTexture(const ColorTextureSceneLayer& layer); |
41 | 41 |
42 public: | 42 public: |
43 OpenGLColorTextureRenderer(OpenGL::IOpenGLContext& context, | 43 OpenGLColorTextureRenderer(OpenGL::IOpenGLContext& context, |