C4 Engine
C4 Engine API Documentation

ViewportWidget::InvalidateViewportTexture

Defined in:  C4Viewports.h
Invalidates the cached texture map for a viewport widget.
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

ViewportWidget::SetTextureRenderCallback

ViewportWidget::SetDirectRenderCallback