wined3d: Add D3DPATCHEDGESTYLE to the WINED3D namespace.

This commit is contained in:
Ivan Gyurdiev 2006-10-31 03:20:48 -05:00 committed by Alexandre Julliard
parent 8d7a01963e
commit 50130fdfdb
3 changed files with 9 additions and 2 deletions

View file

@ -4463,7 +4463,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case WINED3DRS_PATCHEDGESTYLE : case WINED3DRS_PATCHEDGESTYLE :
{ {
if(D3DPATCHEDGE_DISCRETE != Value) if(WINED3DPATCHEDGE_DISCRETE != Value)
ERR("(%p)->(%s,%d) not yet implemented\n", This, debug_d3drenderstate(State), Value); ERR("(%p)->(%s,%d) not yet implemented\n", This, debug_d3drenderstate(State), Value);
break; break;
} }

View file

@ -925,7 +925,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSCALE_C, tmpfloat.d); IWineD3DDevice_SetRenderState(device, WINED3DRS_POINTSCALE_C, tmpfloat.d);
IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEANTIALIAS, TRUE); IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEANTIALIAS, TRUE);
IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEMASK, 0xFFFFFFFF); IWineD3DDevice_SetRenderState(device, WINED3DRS_MULTISAMPLEMASK, 0xFFFFFFFF);
IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHEDGESTYLE, D3DPATCHEDGE_DISCRETE); IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHEDGESTYLE, WINED3DPATCHEDGE_DISCRETE);
tmpfloat.f = 1.0f; tmpfloat.f = 1.0f;
IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHSEGMENTS, tmpfloat.d); IWineD3DDevice_SetRenderState(device, WINED3DRS_PATCHSEGMENTS, tmpfloat.d);
IWineD3DDevice_SetRenderState(device, WINED3DRS_DEBUGMONITORTOKEN, 0xbaadcafe); IWineD3DDevice_SetRenderState(device, WINED3DRS_DEBUGMONITORTOKEN, 0xbaadcafe);

View file

@ -560,6 +560,13 @@ typedef enum _WINED3DMATERIALCOLORSOURCE {
WINED3DMCS_FORCE_DWORD = 0x7fffffff WINED3DMCS_FORCE_DWORD = 0x7fffffff
} WINED3DMATERIALCOLORSOURCE; } WINED3DMATERIALCOLORSOURCE;
typedef enum _WINED3DPATCHEDGESTYLE {
WINED3DPATCHEDGE_DISCRETE = 0,
WINED3DPATCHEDGE_CONTINUOUS = 1,
WINED3DPATCHEDGE_FORCE_DWORD = 0x7fffffff,
} WINED3DPATCHEDGESTYLE;
typedef struct _WINED3DDISPLAYMODE { typedef struct _WINED3DDISPLAYMODE {
UINT Width; UINT Width;
UINT Height; UINT Height;