Mercurial > hg > orthanc-stone
diff Framework/OpenGL/IOpenGLContext.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 | b4de8272e8fb |
children | a7351ad54960 |
line wrap: on
line diff
--- a/Framework/OpenGL/IOpenGLContext.h Tue Aug 06 15:07:23 2019 +0200 +++ b/Framework/OpenGL/IOpenGLContext.h Sat Aug 10 13:07:31 2019 +0200 @@ -34,6 +34,8 @@ { } + virtual bool IsContextLost() const = 0; + virtual void MakeCurrent() = 0; virtual void SwapBuffer() = 0; @@ -41,6 +43,13 @@ virtual unsigned int GetCanvasWidth() const = 0; virtual unsigned int GetCanvasHeight() const = 0; + + virtual void* DebugGetInternalContext() const = 0; + + // This is for manual context loss (debug purposes) + virtual void SetLostContext() = 0; + virtual void RestoreLostContext() = 0; + }; } }