
282 9. Enhanced Appearance
// Display text str in InputDialog
void print(const std::string &str);
// Checks for Close event
void update();
// Call when graphics device is lost
void onLostDevice();
};
#endif
Listing 9.33. Overridden functions in the InputDialog class.
Sometimes an overridden function in the derived class needs to call the existing function
in the base class. e prepareVerts function does just that. e syntax is BaseClass::
function(); and can be seen in Listing 9.34. e inputDialog.cpp le contains the
remaining code, which we will leave for the reader to explore.
//======================================================================== ...