Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/IOpenGLContext.h @ 1576:92fca2b3ba3d
sanitizing the handling of canvas size
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 24 Sep 2020 16:40:30 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1575:e4a52cbbdd70 | 1576:92fca2b3ba3d |
---|---|
37 virtual bool IsContextLost() = 0; | 37 virtual bool IsContextLost() = 0; |
38 | 38 |
39 virtual void MakeCurrent() = 0; | 39 virtual void MakeCurrent() = 0; |
40 | 40 |
41 virtual void SwapBuffer() = 0; | 41 virtual void SwapBuffer() = 0; |
42 | |
43 virtual unsigned int GetCanvasWidth() const = 0; | |
44 | |
45 virtual unsigned int GetCanvasHeight() const = 0; | |
46 | |
47 // Getting the size of the canvas can be expensive, especially | |
48 // in WebAssembly => avoid calling this method too often | |
49 // (e.g. on each refresh) | |
50 virtual void RefreshCanvasSize() = 0; | |
51 }; | 42 }; |
52 } | 43 } |
53 } | 44 } |