9 this->bActivate = false;
10 this->bFirstWork = true;
13 bool Activity::OneTimeSceneInit()
15 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
16 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
20 bRet = MyOneTimeSceneInit();
24 this->Activities.resetList();
25 while( ( pa = this->Activities.getNext() ) != NULL )
27 if( ! pa->OneTimeSceneInit() )
33 bool Activity::Activate()
35 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
36 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
44 this->Activities.resetList();
45 while( ( pa = this->Activities.getNext() ) != NULL )
47 if( ! pa->Activate() )
53 bool Activity::UnActivate()
55 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
56 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
60 bRet = MyUnActivate();
64 this->Activities.resetList();
65 while( ( pa = this->Activities.getNext() ) != NULL )
67 if( !pa->UnActivate() )
73 bool Activity::FinalCleanup()
75 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
76 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
80 bRet = MyFinalCleanup();
84 this->Activities.resetList();
85 while( ( pa = this->Activities.getNext() ) != NULL )
87 if( !pa->FinalCleanup() )
93 bool Activity::InitDeviceObjects()
95 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
96 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
100 bRet = MyInitDeviceObjects();
104 this->Activities.resetList();
105 while( ( pa = this->Activities.getNext() ) != NULL )
107 if( !pa->InitDeviceObjects() )
113 bool Activity::RestoreDeviceTextures()
115 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
116 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
120 bRet = MyRestoreDeviceTextures();
124 this->Activities.resetList();
125 while( ( pa = this->Activities.getNext() ) != NULL )
127 if( !pa->RestoreDeviceTextures() )
133 bool Activity::RestoreDeviceSurfaces()
135 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
136 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
140 bRet = MyRestoreDeviceSurfaces();
142 // (2)
\8eqActivity
\8fW
\8d\87
144 this->Activities.resetList();
145 while( ( pa = this->Activities.getNext() ) != NULL )
147 if( !pa->RestoreDeviceSurfaces() )
153 bool Activity::InvalidateDeviceObjects()
155 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
156 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
160 bRet = MyInvalidateDeviceObjects();
164 this->Activities.resetList();
165 while( ( pa = this->Activities.getNext() ) != NULL )
167 if( ! pa->InvalidateDeviceObjects() )
173 bool Activity::DeleteDeviceObjects()
175 //
\8e©
\95ª
\81{
\8eq
\8fW
\8d\87\91S
\95\94\82É
\82Â
\82¢
\82Ä
\81A
\83G
\83\89\81[
\82ª
\8fo
\82½
\82ç
\8bL
\89¯
\82µ
\82Ä
\82¨
\82
\81B
176 //
\83G
\83\89\81[
\82ª
\82Å
\82Ä
\82Ä
\82à
\81A
\8cÄ
\82Ñ
\8fo
\82µ
\82Í
\91S
\95\94\82É
\82Â
\82¢
\82Ä
\82Ð
\82Æ
\92Ê
\82è
\8ds
\82¤
\81B
180 bRet = MyDeleteDeviceObjects();
184 this->Activities.resetList();
185 while( ( pa = this->Activities.getNext() ) != NULL )
187 if( ! pa->DeleteDeviceObjects() )
193 bool Activity::MyActivate()
195 if( this->bActivate )
196 return true; //
\82·
\82Å
\82É
\8a\88\90«
\89»
\82µ
\82Ä
\82é
\82È
\82ç
\89½
\82à
\82µ
\82È
\82¢
198 this->bActivate = true; // MyResoreDeviceObjects()
\82Ì
\8cÄ
\82Ñ
\8fo
\82µ
\82Ì
\91O
\82É
\90Ý
\92è
200 bool bTex
\90¬
\8c÷ = MyRestoreDeviceTextures();
201 bool bSur
\90¬
\8c÷ = MyRestoreDeviceSurfaces();
202 if( ! bTex
\90¬
\8c÷ || ! bSur
\90¬
\8c÷ ) //
\83G
\83\89\81[
\82ª
\8fo
\82Ä
\82à
\82Ð
\82Æ
\92Ê
\82è
\82º
\82ñ
\82Ô
\89ñ
\82·
203 this->bActivate = false;
205 return this->bActivate;
208 bool Activity::MyUnActivate()
210 if( ! this->bActivate )
211 return true; //
\8a\88\90«
\89»
\82µ
\82Ä
\82È
\82¢
\82È
\82ç
\89½
\82à
\82µ
\82È
\82¢
213 MyInvalidateDeviceObjects();
215 this->bActivate = false; // MyInvalidateDeviceObjects()
\82Ì
\8cÄ
\82Ñ
\8fo
\82µ
\82Ì
\8cã
\82É
\90Ý
\92è
219 bool Activity::MyRestoreDeviceTextures()
221 if( ! this->bActivate )
222 return true; //
\8a\88\90«
\89»
\82µ
\82Ä
\82È
\82¢
\82È
\82ç
\89½
\82à
\82µ
\82È
\82¢
224 //
\8eq
\83e
\83N
\83X
\83`
\83\83\82Ì
\8d\
\92z
227 this->Textures.resetList();
228 while( ( pt = this->Textures.getNext() ) != NULL )
230 if( FAILED( pt->RestoreDeviceObjects() ) )
236 bool Activity::MyRestoreDeviceSurfaces()
238 if( ! this->bActivate )
239 return true; //
\8a\88\90«
\89»
\82µ
\82Ä
\82È
\82¢
\82È
\82ç
\89½
\82à
\82µ
\82È
\82¢
241 //
\8eq
\83T
\81[
\83t
\83F
\83C
\83X
\82Ì
\8d\
\92z
244 this->Surfaces.resetList();
245 while( ( ps = this->Surfaces.getNext() ) != NULL )
247 if( FAILED( ps->RestoreDeviceObjects() ) )
253 bool Activity::MyInvalidateDeviceObjects()
255 if( ! this->bActivate )
256 return true; //
\8a\88\90«
\89»
\82µ
\82Ä
\82È
\82¢
\82È
\82ç
\89½
\82à
\82µ
\82È
\82¢
260 //
\8eq
\83e
\83N
\83X
\83`
\83\83\82Ì
\96³
\8cø
\89»
262 this->Textures.resetList();
263 while( ( pt = this->Textures.getNext() ) != NULL )
265 if( FAILED( pt->InvalidateDeviceObjects() ) )
269 //
\8eq
\83T
\81[
\83t
\83F
\83C
\83X
\82Ì
\96³
\8cø
\89»
271 this->Surfaces.resetList();
272 while( ( ps = this->Surfaces.getNext() ) != NULL )
274 if( FAILED( ps->InvalidateDeviceObjects() ) )
281 bool Activity::MyDeleteDeviceObjects()
285 //
\8eq
\83e
\83N
\83X
\83`
\83\83\82Ì
\8dí
\8f\9c
287 this->Textures.resetList();
288 while( ( pt = this->Textures.getNext() ) != NULL )
290 if( FAILED( pt->DeleteDeviceObjects() ) )
294 //
\8eq
\83T
\81[
\83t
\83F
\83C
\83X
\82Ì
\8dí
\8f\9c
296 this->Surfaces.resetList();
297 while( ( ps = this->Surfaces.getNext() ) != NULL )
299 if( FAILED( ps->DeleteDeviceObjects() ) )