C4 Engine
C4 Engine API Documentation

Widget::BuildWidget

Defined in:  C4Widgets.h
Builds the geometric structure of a widget.
Prototype

virtual void BuildWidget(void);

Description
The BuildWidget function is called by the Interface Manager when a widget needs to be built before it can be rendered. An implementation of this function should build the geometric structure of a widget by filling in vertex arrays as necessary for the Renderable base class of the RenderableWidget class.

A widget indicates that it needs to be rebuilt by calling the Widget::SetBuildFlag function. For subclasses of the RenderableWidget class, the build flag is initially set during preprocessing.
See Also

Widget::SetBuildFlag