comparison Framework/OpenGL/IOpenGLContext.h @ 1482:5c96bf3f1d32

IOpenGL::RefreshCanvasSize()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 20 Jun 2020 11:08:28 +0200
parents 2d8ab34c8c91
children
comparison
equal deleted inserted replaced
1481:970ee51fe01f 1482:5c96bf3f1d32
41 virtual void SwapBuffer() = 0; 41 virtual void SwapBuffer() = 0;
42 42
43 virtual unsigned int GetCanvasWidth() const = 0; 43 virtual unsigned int GetCanvasWidth() const = 0;
44 44
45 virtual unsigned int GetCanvasHeight() const = 0; 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;
46 }; 51 };
47 } 52 }
48 } 53 }