/[cvs]/api/include/dx7todx8.h
ViewVC logotype

Annotation of /api/include/dx7todx8.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Jul 1 20:47:59 2001 UTC (23 years, 4 months ago) by bearsoft
Branch point for: lazy, MAIN
File MIME type: text/plain
Initial revision

1 bearsoft 1.1 /*==========================================================================;
2     *
3     * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
4     *
5     * File: dx7todx8.h
6     * Content: DX7 to DX8 Direct3D aliases to aid porting DX7 apps to DX8
7     *
8     ***************************************************************************/
9    
10     #ifndef _DX7TODX8_H_
11    
12     ///////////////////////////////////////////////////////////////////////////////
13     //
14     // d3d8types.h
15     //
16     ///////////////////////////////////////////////////////////////////////////////
17    
18     #define D3DTRANSFORMSTATE_WORLD D3DTS_WORLD
19     #define D3DTRANSFORMSTATE_VIEW D3DTS_VIEW
20     #define D3DTRANSFORMSTATE_PROJECTION D3DTS_PROJECTION
21     #define D3DTRANSFORMSTATE_WORLD1 D3DTS_WORLD1
22     #define D3DTRANSFORMSTATE_WORLD2 D3DTS_WORLD2
23     #define D3DTRANSFORMSTATE_WORLD3 D3DTS_WORLD3
24     #define D3DTRANSFORMSTATE_TEXTURE0 D3DTS_TEXTURE0
25     #define D3DTRANSFORMSTATE_TEXTURE1 D3DTS_TEXTURE1
26     #define D3DTRANSFORMSTATE_TEXTURE2 D3DTS_TEXTURE2
27     #define D3DTRANSFORMSTATE_TEXTURE3 D3DTS_TEXTURE3
28     #define D3DTRANSFORMSTATE_TEXTURE4 D3DTS_TEXTURE4
29     #define D3DTRANSFORMSTATE_TEXTURE5 D3DTS_TEXTURE5
30     #define D3DTRANSFORMSTATE_TEXTURE6 D3DTS_TEXTURE6
31     #define D3DTRANSFORMSTATE_TEXTURE7 D3DTS_TEXTURE7
32     #define D3DTRANSFORMSTATE_FORCE_DWORD D3DTS_FORCE_DWORD
33    
34     #define D3DRENDERSTATE_ZENABLE D3DRS_ZENABLE
35     #define D3DRENDERSTATE_FILLMODE D3DRS_FILLMODE
36     #define D3DRENDERSTATE_SHADEMODE D3DRS_SHADEMODE
37     #define D3DRENDERSTATE_LINEPATTERN D3DRS_LINEPATTERN
38     #define D3DRENDERSTATE_ZWRITEENABLE D3DRS_ZWRITEENABLE
39     #define D3DRENDERSTATE_ALPHATESTENABLE D3DRS_ALPHATESTENABLE
40     #define D3DRENDERSTATE_LASTPIXEL D3DRS_LASTPIXEL
41     #define D3DRENDERSTATE_SRCBLEND D3DRS_SRCBLEND
42     #define D3DRENDERSTATE_DESTBLEND D3DRS_DESTBLEND
43     #define D3DRENDERSTATE_CULLMODE D3DRS_CULLMODE
44     #define D3DRENDERSTATE_ZFUNC D3DRS_ZFUNC
45     #define D3DRENDERSTATE_ALPHAREF D3DRS_ALPHAREF
46     #define D3DRENDERSTATE_ALPHAFUNC D3DRS_ALPHAFUNC
47     #define D3DRENDERSTATE_DITHERENABLE D3DRS_DITHERENABLE
48     #define D3DRENDERSTATE_ALPHABLENDENABLE D3DRS_ALPHABLENDENABLE
49     #define D3DRENDERSTATE_FOGENABLE D3DRS_FOGENABLE
50     #define D3DRENDERSTATE_SPECULARENABLE D3DRS_SPECULARENABLE
51     #define D3DRENDERSTATE_ZVISIBLE D3DRS_ZVISIBLE
52     #define D3DRENDERSTATE_FOGCOLOR D3DRS_FOGCOLOR
53     #define D3DRENDERSTATE_FOGTABLEMODE D3DRS_FOGTABLEMODE
54     #define D3DRENDERSTATE_FOGSTART D3DRS_FOGSTART
55     #define D3DRENDERSTATE_FOGEND D3DRS_FOGEND
56     #define D3DRENDERSTATE_FOGDENSITY D3DRS_FOGDENSITY
57     #define D3DRENDERSTATE_EDGEANTIALIAS D3DRS_EDGEANTIALIAS
58     #define D3DRENDERSTATE_ZBIAS D3DRS_ZBIAS
59     #define D3DRENDERSTATE_RANGEFOGENABLE D3DRS_RANGEFOGENABLE
60     #define D3DRENDERSTATE_STENCILENABLE D3DRS_STENCILENABLE
61     #define D3DRENDERSTATE_STENCILFAIL D3DRS_STENCILFAIL
62     #define D3DRENDERSTATE_STENCILZFAIL D3DRS_STENCILZFAIL
63     #define D3DRENDERSTATE_STENCILPASS D3DRS_STENCILPASS
64     #define D3DRENDERSTATE_STENCILFUNC D3DRS_STENCILFUNC
65     #define D3DRENDERSTATE_STENCILREF D3DRS_STENCILREF
66     #define D3DRENDERSTATE_STENCILMASK D3DRS_STENCILMASK
67     #define D3DRENDERSTATE_STENCILWRITEMASK D3DRS_STENCILWRITEMASK
68     #define D3DRENDERSTATE_TEXTUREFACTOR D3DRS_TEXTUREFACTOR
69     #define D3DRENDERSTATE_WRAP0 D3DRS_WRAP0
70     #define D3DRENDERSTATE_WRAP1 D3DRS_WRAP1
71     #define D3DRENDERSTATE_WRAP2 D3DRS_WRAP2
72     #define D3DRENDERSTATE_WRAP3 D3DRS_WRAP3
73     #define D3DRENDERSTATE_WRAP4 D3DRS_WRAP4
74     #define D3DRENDERSTATE_WRAP5 D3DRS_WRAP5
75     #define D3DRENDERSTATE_WRAP6 D3DRS_WRAP6
76     #define D3DRENDERSTATE_WRAP7 D3DRS_WRAP7
77     #define D3DRENDERSTATE_CLIPPING D3DRS_CLIPPING
78     #define D3DRENDERSTATE_LIGHTING D3DRS_LIGHTING
79     #define D3DRENDERSTATE_EXTENTS D3DRS_EXTENTS
80     #define D3DRENDERSTATE_AMBIENT D3DRS_AMBIENT
81     #define D3DRENDERSTATE_FOGVERTEXMODE D3DRS_FOGVERTEXMODE
82     #define D3DRENDERSTATE_COLORVERTEX D3DRS_COLORVERTEX
83     #define D3DRENDERSTATE_LOCALVIEWER D3DRS_LOCALVIEWER
84     #define D3DRENDERSTATE_NORMALIZENORMALS D3DRS_NORMALIZENORMALS
85     #define D3DRENDERSTATE_DIFFUSEMATERIALSOURCE D3DRS_DIFFUSEMATERIALSOURCE
86     #define D3DRENDERSTATE_SPECULARMATERIALSOURCE D3DRS_SPECULARMATERIALSOURCE
87     #define D3DRENDERSTATE_AMBIENTMATERIALSOURCE D3DRS_AMBIENTMATERIALSOURCE
88     #define D3DRENDERSTATE_EMISSIVEMATERIALSOURCE D3DRS_EMISSIVEMATERIALSOURCE
89     #define D3DRENDERSTATE_VERTEXBLEND D3DRS_VERTEXBLEND
90     #define D3DRENDERSTATE_CLIPPLANEENABLE D3DRS_CLIPPLANEENABLE
91    
92     #define RGBA_MAKE D3DCOLOR_RGBA
93     #define RGB_MAKE D3DCOLOR_XRGB
94     #define D3DRGBA D3DCOLOR_COLORVALUE
95     #define D3DRGB(_r,_g,_b) D3DCOLOR_COLORVALUE(_r,_g,_b,1.f)
96    
97     #define _DX7TODX8_H_
98     #endif //_DX7TODX8_H_

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26