Inviwo
0.9.10.1
Inviwo documentation
|
#include <renderhandlergl.h>
Public Types | |
typedef std::function< void()> | OnWebPageCopiedCallback |
Public Member Functions | |
RenderHandlerGL (OnWebPageCopiedCallback onWebPageCopiedCallback) | |
void | updateCanvasSize (size2_t newSize) |
virtual bool | GetViewRect (CefRefPtr< CefBrowser > browser, CefRect &rect) override |
virtual void | OnPopupShow (CefRefPtr< CefBrowser > browser, bool show) override |
virtual void | OnPopupSize (CefRefPtr< CefBrowser > browser, const CefRect &rect) override |
virtual void | OnPaint (CefRefPtr< CefBrowser > browser, PaintElementType type, const RectList &dirtyRects, const void *buffer, int width, int height) override |
Texture2D & | getTexture2D () |
uvec4 | getPixel (int x, int y) |
void | ClearPopupRects () |
IMPLEMENT_REFCOUNTING (RenderHandlerGL) | |
Copies web page into a Texture2D each time it has been painted by the browser and calls onWebPageCopiedCallback afterwards.