summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/d3d/D3DTextureMgr.h
blob: f4a4154917a50c2994ed800c8a03bb555eece753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*===========================================================================*/
/*                                                                           */
/* Mesa-3.0 DirectX 6 Driver                                                 */
/*                                                                           */
/* By Leigh McRae                                                            */
/*                                                                           */
/* http://www.altsoftware.com/                                               */
/*                                                                           */
/* Copyright (c) 1999-1998  alt.software inc.  All Rights Reserved           */
/*===========================================================================*/
#ifndef _TEXTURE_MGR_INC
#define _TEXTURE_MGR_INC
   
/*===========================================================================*/
/* Includes.                                                                 */
/*===========================================================================*/
#include <windows.h>
#include <ddraw.h>
#include <d3d.h>
#include <stdlib.h>
#include <stdlib.h>
#include "GL/gl.h"
/*========================================================================*/
/* Defines.                                                               */
/*========================================================================*/
/*========================================================================*/
/* Type defines.                                                          */
/*========================================================================*/
typedef struct _local_texture_object
{
   DWORD                dwName,
                        dwPriority,
                        dwFlags,
                        dwSWidth,
                        dwSHeight,
                        dwVWidth,
                        dwVHeight;
   BOOL                 bLock,
	                   bDirty;		/*  I only update VID on SubImage calls so the system */
                                        /* texture can get invalid.                           */

   LPDIRECT3DDEVICE3    lpD3DDevice;	/* If the device changes we must get new handles... */
   LPDIRECTDRAWSURFACE4 lpDDS_System,
	                   lpDDS_Video;
   LPDIRECT3DTEXTURE2   lpD3DTexture2;

   PIXELINFO            pixel;

   struct _local_texture_object *next;
   struct _local_texture_object *prev;

} TM_OBJECT, *PTM_OBJECT;
/*========================================================================*/
/* Function prototypes.                                                   */
/*========================================================================*/
void APIENTRY  InitTMD3D( void *pVoid );
void APIENTRY  TermTMD3D( void *pVoid );
/*========================================================================*/
/* Global variables declaration.                                          */
/*========================================================================*/

#endif