D3DTEX.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /**************************************************************************
  2.  **************************************************************************/
  3. class D3DTexture {
  4.     private:
  5.         IDirectDrawSurface *MemorySurface;  // system memory surface
  6.         IDirectDrawSurface *DeviceSurface;  // video memory texture
  7. IDirectDrawPalette *Palette;
  8. D3DTEXTUREHANDLE    Handle;
  9.     public:
  10.         D3DTexture()
  11.         {
  12.     MemorySurface = 0;
  13.     DeviceSurface = 0;
  14.             Palette = 0;
  15.     Handle = 0;
  16.         }
  17.         D3DTEXTUREHANDLE    GetHandle()    {return Handle;}
  18.         IDirectDrawSurface* GetSurface()   {return MemorySurface;}
  19.         IDirectDrawPalette* GetPalette()   {return Palette;}
  20.         BOOL Load(IDirect3DDevice2 *Device, char *BitmapName);
  21.         BOOL Copy(HBITMAP Bitmap);
  22.         void Release(void);
  23.         BOOL Restore(void);
  24. };