D3DTEX.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /**************************************************************************
- **************************************************************************/
- class D3DTexture {
- private:
- IDirectDrawSurface *MemorySurface; // system memory surface
- IDirectDrawSurface *DeviceSurface; // video memory texture
- IDirectDrawPalette *Palette;
- D3DTEXTUREHANDLE Handle;
- public:
- D3DTexture()
- {
- MemorySurface = 0;
- DeviceSurface = 0;
- Palette = 0;
- Handle = 0;
- }
- D3DTEXTUREHANDLE GetHandle() {return Handle;}
- IDirectDrawSurface* GetSurface() {return MemorySurface;}
- IDirectDrawPalette* GetPalette() {return Palette;}
- BOOL Load(IDirect3DDevice2 *Device, char *BitmapName);
- BOOL Copy(HBITMAP Bitmap);
- void Release(void);
- BOOL Restore(void);
- };