Convert crlf->lf line endings.
[mesa.git] / src / mesa / drivers / d3d / D3DTextureMgr.h
1 /*===========================================================================*/
2 /* */
3 /* Mesa-3.0 DirectX 6 Driver */
4 /* */
5 /* By Leigh McRae */
6 /* */
7 /* http://www.altsoftware.com/ */
8 /* */
9 /* Copyright (c) 1999-1998 alt.software inc. All Rights Reserved */
10 /*===========================================================================*/
11 #ifndef _TEXTURE_MGR_INC
12 #define _TEXTURE_MGR_INC
13
14 /*===========================================================================*/
15 /* Includes. */
16 /*===========================================================================*/
17 #include <windows.h>
18 #include <ddraw.h>
19 #include <d3d.h>
20 #include <stdlib.h>
21 #include <stdlib.h>
22 #include "GL/gl.h"
23 /*========================================================================*/
24 /* Defines. */
25 /*========================================================================*/
26 /*========================================================================*/
27 /* Type defines. */
28 /*========================================================================*/
29 typedef struct _local_texture_object
30 {
31 DWORD dwName,
32 dwPriority,
33 dwFlags,
34 dwSWidth,
35 dwSHeight,
36 dwVWidth,
37 dwVHeight;
38 BOOL bLock,
39 bDirty; /* I only update VID on SubImage calls so the system */
40 /* texture can get invalid. */
41
42 LPDIRECT3DDEVICE3 lpD3DDevice; /* If the device changes we must get new handles... */
43 LPDIRECTDRAWSURFACE4 lpDDS_System,
44 lpDDS_Video;
45 LPDIRECT3DTEXTURE2 lpD3DTexture2;
46
47 PIXELINFO pixel;
48
49 struct _local_texture_object *next;
50 struct _local_texture_object *prev;
51
52 } TM_OBJECT, *PTM_OBJECT;
53 /*========================================================================*/
54 /* Function prototypes. */
55 /*========================================================================*/
56 void APIENTRY InitTMD3D( void *pVoid );
57 void APIENTRY TermTMD3D( void *pVoid );
58 /*========================================================================*/
59 /* Global variables declaration. */
60 /*========================================================================*/
61
62 #endif