comparison Framework/Viewport/IViewport.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 685c9a2d115f
children a7351ad54960
comparison
equal deleted inserted replaced
946:dbe3e1e47019 947:1091b2adeb5a
56 unsigned int fontSize, 56 unsigned int fontSize,
57 Orthanc::Encoding codepage) = 0; 57 Orthanc::Encoding codepage) = 0;
58 #endif 58 #endif
59 59
60 protected: 60 protected:
61 virtual ICompositor& GetCompositor() = 0; 61 virtual ICompositor* GetCompositor() = 0;
62 62
63 virtual const ICompositor& GetCompositor() const 63 virtual const ICompositor* GetCompositor() const
64 { 64 {
65 IViewport* self = const_cast<IViewport*>(this); 65 IViewport* self = const_cast<IViewport*>(this);
66 return self->GetCompositor(); 66 return self->GetCompositor();
67 } 67 }
68 }; 68 };