00001 #ifndef __D3D8TEXTUREMANAGER_H__ 00002 #define __D3D8TEXTUREMANAGER_H__ 00003 00004 #include "OgreD3D8Prerequisites.h" 00005 00006 #include "OgreTextureManager.h" 00007 00008 #include "OgreNoMemoryMacros.h" 00009 #include <d3d8.h> 00010 #include "OgreMemoryMacros.h" 00011 00012 namespace Ogre { 00013 00014 class D3D8TextureManager : public TextureManager 00015 { 00016 private: 00017 LPDIRECT3DDEVICE8 mpD3DDevice; 00018 00019 public: 00020 D3D8TextureManager( LPDIRECT3DDEVICE8 pD3DDevice ); 00021 ~D3D8TextureManager(); 00022 00024 virtual Resource * create( const String& name ); 00025 virtual Texture * createAsRenderTarget( const String& name ); 00026 00027 virtual Texture * createManual( 00028 const String & name, 00029 uint width, 00030 uint height, 00031 uint num_mips, 00032 PixelFormat format, 00033 TextureUsage usage ); 00034 00035 void unloadAndDestroyAll(); 00036 }; 00037 00038 } 00039 00040 #endif
Copyright © 2002 by The OGRE Team