ViewportWidget::InvalidateViewportTexture
Defined in:
Invalidates the cached texture map for a viewport widget.
C4Viewports.h
Prototype
void InvalidateViewportTexture(void);
Description
The InvalidateViewportTexture
function invalidates the internal texture map containing the cached image last rendered into a viewport. This causes the texture rendering callback function installed with the ViewportWidget::SetTextureRenderCallback
function to be called the next time the viewport widget itself is rendered in order to update the contents of the viewport's texture map. The new image will then be kept in the texture map and used as the viewport contents until the texture map is again invalidated. The InvalidateViewportTexture
function should be called any time that something changes in such a way that the viewport texture image needs to be re-rendered.
See Also
ViewportWidget::EnableViewportTexture
ViewportWidget::DisableViewportTexture