Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
946:dbe3e1e47019 | 947:1091b2adeb5a |
---|---|
32 public: | 32 public: |
33 virtual ~IOpenGLContext() | 33 virtual ~IOpenGLContext() |
34 { | 34 { |
35 } | 35 } |
36 | 36 |
37 virtual bool IsContextLost() const = 0; | |
38 | |
37 virtual void MakeCurrent() = 0; | 39 virtual void MakeCurrent() = 0; |
38 | 40 |
39 virtual void SwapBuffer() = 0; | 41 virtual void SwapBuffer() = 0; |
40 | 42 |
41 virtual unsigned int GetCanvasWidth() const = 0; | 43 virtual unsigned int GetCanvasWidth() const = 0; |
42 | 44 |
43 virtual unsigned int GetCanvasHeight() const = 0; | 45 virtual unsigned int GetCanvasHeight() const = 0; |
46 | |
47 virtual void* DebugGetInternalContext() const = 0; | |
48 | |
49 // This is for manual context loss (debug purposes) | |
50 virtual void SetLostContext() = 0; | |
51 virtual void RestoreLostContext() = 0; | |
52 | |
44 }; | 53 }; |
45 } | 54 } |
46 } | 55 } |
47 | 56 |