Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
96 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

  Contents

 Preface
 Compiling
 the Source

 The Application
 Class

 Initialization
 Rendering
 Cleaning Up

 Printable version

 


  The Series

 The Basics
 First Steps to
 Animation

 Multitexturing
 Building Worlds
 With X Files


 

DeleteDeviceObjects()

When the app is finishing, the DeleteDeviceObjects() is called:

HRESULT CMyD3DApplication::DeleteDeviceObjects() { D3DTextr_InvalidateAllTextures(); return S_OK; }

The call to D3DTextr_InvalidateAllTextures() releases the allocated surfaces for the textures.

FinalCleanup()

The framework sends its last call to FinalCleanup().

HRESULT CMyD3DApplication::FinalCleanup() { D3DTextr_DestroyTexture( "lake.bmp" ); return S_OK; }

D3DTextr_DestroyTexture() releases the allocated memory for the texture container.

Finale

I hope you enjoyed our small trip into the word of the Direct3D 7 IM Framework. This was a very simple sample to show the new Direct3D 7 Framework. The next step is building a more complex sample...

If you dislike or like it, give me a sign at wolf@direct3d.net