wined3d: Add D3DFILLMODE to the WINED3D namespace.

This commit is contained in:
Ivan Gyurdiev 2006-10-29 21:43:51 -05:00 committed by Alexandre Julliard
parent 02fb9f6f41
commit f5cc612842
3 changed files with 13 additions and 5 deletions

View File

@ -3431,10 +3431,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
switch (State) {
case WINED3DRS_FILLMODE :
switch ((D3DFILLMODE) Value) {
case D3DFILL_POINT : glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); break;
case D3DFILL_WIREFRAME : glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); break;
case D3DFILL_SOLID : glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); break;
switch ((WINED3DFILLMODE) Value) {
case WINED3DFILL_POINT : glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); break;
case WINED3DFILL_WIREFRAME : glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); break;
case WINED3DFILL_SOLID : glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); break;
default:
FIXME("Unrecognized WINED3DRS_FILLMODE value %d\n", Value);
}

View File

@ -843,7 +843,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
} else {
IWineD3DDevice_SetRenderState(device, WINED3DRS_ZENABLE, WINED3DZB_FALSE);
}
IWineD3DDevice_SetRenderState(device, WINED3DRS_FILLMODE, D3DFILL_SOLID);
IWineD3DDevice_SetRenderState(device, WINED3DRS_FILLMODE, WINED3DFILL_SOLID);
IWineD3DDevice_SetRenderState(device, WINED3DRS_SHADEMODE, WINED3DSHADE_GOURAUD);
lp.lp.wRepeatFactor = 0;
lp.lp.wLinePattern = 0;

View File

@ -505,6 +505,14 @@ typedef enum _WINED3DSHADEMODE {
WINED3DSHADE_FORCE_DWORD = 0x7fffffff
} WINED3DSHADEMODE;
typedef enum _WINED3DFILLMODE {
WINED3DFILL_POINT = 1,
WINED3DFILL_WIREFRAME = 2,
WINED3DFILL_SOLID = 3,
WINED3DFILL_FORCE_DWORD = 0x7fffffff
} WINED3DFILLMODE;
typedef enum _WINED3DCULL {
WINED3DCULL_NONE = 1,
WINED3DCULL_CW = 2,