Upcoming Events
Workshop on Network and Systems Support for Games (NetGames 2009)
11/23 - 11/25 @ Paris, France

LOOP 2009
11/26 - 11/29  

EVA 2009
12/4 - 12/5 @ Buenos Aires, Argentina

ICIDS 2009 Interactive Storytelling
12/9 - 12/11 @ Guimarães, Portugal

More events...


Quick Stats
6682 people currently visiting GDNet.
2341 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!



Link to us

Link to us

  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