Game Development Reference
In-Depth Information
Figure 18.4 Using a loading screen.
A load is initialized when the bscfFlag has the BSCF_FIRST-
DATANOTIFICATION bit set. If this is true then the control is informed by
calling the control's member function ToonFileAvailable . Intermediate
calls use ToonFileLoading and the final call ToonFileLoaded .
void CToonFileProperty::OnDataAvailable(DWORD dwSize, DWORD
bscfFlag)
{
CToon3DAXCtrl *t3d=(CToon3DAXCtrl*)GetControl();
CCachedDataPathProperty::OnDataAvailable(dwSize, bscfFlag);
if ((bscfFlag & BSCF_FIRSTDATANOTIFICATION) != 0){
t3d->ToonFileAvailable();
}
if ((bscfFlag & BSCF_INTERMEDIATEDATANOTIFICATION) != 0){
t3d->ToonFileLoading();
}
if ((bscfFlag & BSCF_LASTDATANOTIFICATION) != 0){
t3d->ToonFileLoaded();
}
}
Search Nedrilad ::




Custom Search