]> icculus.org git repositories - btb/d2x.git/blob - arch/win32/d3dframe/d3dtextr.h
remove needless sleep on linux hmiplay startup (d1x r1.6)
[btb/d2x.git] / arch / win32 / d3dframe / d3dtextr.h
1 //-----------------------------------------------------------------------------
2 // File: D3DTextr.h
3 //
4 // Desc: Functions to manage textures, including creating (loading from a
5 //       file), restoring lost surfaces, invalidating, and destroying.
6 //
7 //       Note: the implementation of these fucntions maintain an internal list
8 //       of loaded textures. After creation, individual textures are referenced
9 //       via their ASCII names.
10 //
11 //
12 // Copyright (C) 1997 Microsoft Corporation. All rights reserved
13 //-----------------------------------------------------------------------------
14
15 #ifndef D3DTEXTR_H
16 #define D3DTEXTR_H
17
18 #include <ddraw.h>
19 #include <d3d.h>
20
21
22
23
24 //-----------------------------------------------------------------------------
25 // Access functions for loaded textures. Note: these functions search
26 // an internal list of the textures, and use the texture associated with the
27 // ASCII name.
28 //-----------------------------------------------------------------------------
29 LPDIRECTDRAWSURFACE4 D3DTextr_GetSurface( TCHAR* strName );
30 LPDIRECT3DTEXTURE2   D3DTextr_GetTexture( TCHAR* strName );
31
32
33
34
35 //-----------------------------------------------------------------------------
36 // Texture invalidation and restoration functions
37 //-----------------------------------------------------------------------------
38 HRESULT D3DTextr_Invalidate( TCHAR* strName );
39 HRESULT D3DTextr_Restore( TCHAR* strName, LPDIRECT3DDEVICE3 pd3dDevice );
40 HRESULT D3DTextr_InvalidateAllTextures();
41 HRESULT D3DTextr_RestoreAllTextures( LPDIRECT3DDEVICE3 pd3dDevice );
42
43
44
45
46 //-----------------------------------------------------------------------------
47 // Texture creation and deletion functions
48 //-----------------------------------------------------------------------------
49 #define D3DTEXTR_TRANSPARENTWHITE 0x00000001
50 #define D3DTEXTR_TRANSPARENTBLACK 0x00000002
51 #define D3DTEXTR_32BITSPERPIXEL   0x00000004
52
53 HRESULT D3DTextr_CreateTexture( TCHAR* strName, DWORD dwStage=0L,
54                                                             DWORD dwFlags=0L );
55 HRESULT D3DTextr_DestroyTexture( TCHAR* strName );
56 VOID    D3DTextr_SetTexturePath( TCHAR* strTexturePath );
57
58
59
60
61 #endif // D3DTEXTR_H
62