~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/d3d/D3DHAL.H

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 _D3D_HAL_INC
12
 
#define _D3D_HAL_INC
13
 
   
14
 
/*===========================================================================*/
15
 
/* Includes.                                                                 */
16
 
/*===========================================================================*/
17
 
#include <windows.h>
18
 
#include <ddraw.h>
19
 
#include <d3d.h>
20
 
#include <stdlib.h>
21
 
#include <time.h>
22
 
#include "D3DShared.h"
23
 
#include "D3DTextureMgr.h"
24
 
#include "Debug.h"
25
 
/*===========================================================================*/
26
 
/* Defines.                                                                  */
27
 
/*===========================================================================*/
28
 
#define DX_RESTORE(ps)                  if ( (ps) && (ps)->IsLost() ) (ps)->Restore();
29
 
/*===========================================================================*/
30
 
/* Type defines.                                                             */
31
 
/*===========================================================================*/
32
 
typedef struct _d3d_hal_struct
33
 
{
34
 
  MESAD3DSHARED         shared;
35
 
 
36
 
  GUID                          guid;
37
 
  LPDIRECTDRAW                  lpDD;
38
 
  LPDIRECTDRAW4         lpDD4;
39
 
  LPDIRECT3D3           lpD3D3;
40
 
  LPDIRECT3DDEVICE3     lpD3DDevice;
41
 
  D3DDEVICEDESC                 D3DHWDevDesc;
42
 
  LPDIRECTDRAWSURFACE4  lpDDSPrimary,
43
 
                         lpDDSRender,
44
 
                         lpDDSZbuffer;
45
 
  LPDIRECT3DVIEWPORT3   lpViewport;
46
 
  LPDIRECTDRAWCLIPPER   lpClipper;
47
 
  DDPIXELFORMAT         ddpf,
48
 
                         ddpfZBuffer;
49
 
  PTM_OBJECT            pTMList;
50
 
 
51
 
} MESAD3DHAL, *PMESAD3DHAL;
52
 
/*===========================================================================*/
53
 
/* External function prototypes.                                             */
54
 
/*===========================================================================*/
55
 
extern BOOL InitTMgrHAL( PMESAD3DHAL pHAL );
56
 
extern void TermTMgrHAL( PMESAD3DHAL pHAL );
57
 
extern void AlphaBlendTableHAL( PMESAD3DHAL pHAL );
58
 
 
59
 
extern void Solve8BitChannelPixelFormat( DDPIXELFORMAT *pddpf, PPIXELINFO pPixel );
60
 
extern char *ErrorStringD3D( HRESULT hr );
61
 
extern void  FatalShutDown( PMESAD3DHAL pHAL );
62
 
/*===========================================================================*/
63
 
/* Global variables.                                                         */
64
 
/*===========================================================================*/
65
 
extern char     *errorMsg;
66
 
 
67
 
#endif
68