wined3d: Add D3DMATERIALCOLORSOURCE to the WINED3D namespace.
This commit is contained in:
parent
206d248e48
commit
908853f63d
|
@ -4067,17 +4067,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
|
||||||
This->stateBlock->renderState[WINED3DRS_EMISSIVEMATERIALSOURCE],
|
This->stateBlock->renderState[WINED3DRS_EMISSIVEMATERIALSOURCE],
|
||||||
This->stateBlock->renderState[WINED3DRS_SPECULARMATERIALSOURCE]);
|
This->stateBlock->renderState[WINED3DRS_SPECULARMATERIALSOURCE]);
|
||||||
|
|
||||||
if (This->stateBlock->renderState[WINED3DRS_DIFFUSEMATERIALSOURCE] == D3DMCS_COLOR1) {
|
if (This->stateBlock->renderState[WINED3DRS_DIFFUSEMATERIALSOURCE] == WINED3DMCS_COLOR1) {
|
||||||
if (This->stateBlock->renderState[WINED3DRS_AMBIENTMATERIALSOURCE] == D3DMCS_COLOR1) {
|
if (This->stateBlock->renderState[WINED3DRS_AMBIENTMATERIALSOURCE] == WINED3DMCS_COLOR1) {
|
||||||
Parm = GL_AMBIENT_AND_DIFFUSE;
|
Parm = GL_AMBIENT_AND_DIFFUSE;
|
||||||
} else {
|
} else {
|
||||||
Parm = GL_DIFFUSE;
|
Parm = GL_DIFFUSE;
|
||||||
}
|
}
|
||||||
} else if (This->stateBlock->renderState[WINED3DRS_AMBIENTMATERIALSOURCE] == D3DMCS_COLOR1) {
|
} else if (This->stateBlock->renderState[WINED3DRS_AMBIENTMATERIALSOURCE] == WINED3DMCS_COLOR1) {
|
||||||
Parm = GL_AMBIENT;
|
Parm = GL_AMBIENT;
|
||||||
} else if (This->stateBlock->renderState[WINED3DRS_EMISSIVEMATERIALSOURCE] == D3DMCS_COLOR1) {
|
} else if (This->stateBlock->renderState[WINED3DRS_EMISSIVEMATERIALSOURCE] == WINED3DMCS_COLOR1) {
|
||||||
Parm = GL_EMISSION;
|
Parm = GL_EMISSION;
|
||||||
} else if (This->stateBlock->renderState[WINED3DRS_SPECULARMATERIALSOURCE] == D3DMCS_COLOR1) {
|
} else if (This->stateBlock->renderState[WINED3DRS_SPECULARMATERIALSOURCE] == WINED3DMCS_COLOR1) {
|
||||||
Parm = GL_SPECULAR;
|
Parm = GL_SPECULAR;
|
||||||
} else {
|
} else {
|
||||||
Parm = -1;
|
Parm = -1;
|
||||||
|
|
|
@ -904,10 +904,10 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_COLORVERTEX, TRUE);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_COLORVERTEX, TRUE);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_LOCALVIEWER, TRUE);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_LOCALVIEWER, TRUE);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_NORMALIZENORMALS, FALSE);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_NORMALIZENORMALS, FALSE);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_DIFFUSEMATERIALSOURCE, D3DMCS_COLOR1);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_DIFFUSEMATERIALSOURCE, WINED3DMCS_COLOR1);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_SPECULARMATERIALSOURCE, D3DMCS_COLOR2);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_SPECULARMATERIALSOURCE, WINED3DMCS_COLOR2);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_AMBIENTMATERIALSOURCE, D3DMCS_MATERIAL);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_AMBIENTMATERIALSOURCE, WINED3DMCS_MATERIAL);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_EMISSIVEMATERIALSOURCE, D3DMCS_MATERIAL);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_EMISSIVEMATERIALSOURCE, WINED3DMCS_MATERIAL);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_VERTEXBLEND, WINED3DVBF_DISABLE);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_VERTEXBLEND, WINED3DVBF_DISABLE);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_CLIPPLANEENABLE, 0);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_CLIPPLANEENABLE, 0);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_SOFTWAREVERTEXPROCESSING, FALSE);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_SOFTWAREVERTEXPROCESSING, FALSE);
|
||||||
|
|
|
@ -547,6 +547,14 @@ typedef enum _WINED3DSTENCILOP {
|
||||||
WINED3DSTENCILOP_FORCE_DWORD = 0x7fffffff
|
WINED3DSTENCILOP_FORCE_DWORD = 0x7fffffff
|
||||||
} WINED3DSTENCILOP;
|
} WINED3DSTENCILOP;
|
||||||
|
|
||||||
|
typedef enum _WINED3DMATERIALCOLORSOURCE {
|
||||||
|
WINED3DMCS_MATERIAL = 0,
|
||||||
|
WINED3DMCS_COLOR1 = 1,
|
||||||
|
WINED3DMCS_COLOR2 = 2,
|
||||||
|
|
||||||
|
WINED3DMCS_FORCE_DWORD = 0x7fffffff
|
||||||
|
} WINED3DMATERIALCOLORSOURCE;
|
||||||
|
|
||||||
typedef struct _WINED3DDISPLAYMODE {
|
typedef struct _WINED3DDISPLAYMODE {
|
||||||
UINT Width;
|
UINT Width;
|
||||||
UINT Height;
|
UINT Height;
|
||||||
|
|
Loading…
Reference in New Issue