mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Add D3DVERTEXBLENDFLAGS to the WINED3D namespace.
This commit is contained in:
parent
c912032aa5
commit
6f0bb0f6fc
4 changed files with 11 additions and 3 deletions
|
@ -4029,7 +4029,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
|
||||||
|
|
||||||
case WINED3DRS_VERTEXBLEND :
|
case WINED3DRS_VERTEXBLEND :
|
||||||
{
|
{
|
||||||
This->updateStateBlock->vertex_blend = (D3DVERTEXBLENDFLAGS) Value;
|
This->updateStateBlock->vertex_blend = (WINED3DVERTEXBLENDFLAGS) Value;
|
||||||
TRACE("Vertex Blending state to %d\n", Value);
|
TRACE("Vertex Blending state to %d\n", Value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -908,7 +908,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_SPECULARMATERIALSOURCE, D3DMCS_COLOR2);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_SPECULARMATERIALSOURCE, D3DMCS_COLOR2);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_AMBIENTMATERIALSOURCE, D3DMCS_MATERIAL);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_AMBIENTMATERIALSOURCE, D3DMCS_MATERIAL);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_EMISSIVEMATERIALSOURCE, D3DMCS_MATERIAL);
|
IWineD3DDevice_SetRenderState(device, WINED3DRS_EMISSIVEMATERIALSOURCE, D3DMCS_MATERIAL);
|
||||||
IWineD3DDevice_SetRenderState(device, WINED3DRS_VERTEXBLEND, D3DVBF_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);
|
||||||
tmpfloat.f = 1.0f;
|
tmpfloat.f = 1.0f;
|
||||||
|
|
|
@ -1135,7 +1135,7 @@ struct IWineD3DStateBlockImpl
|
||||||
float *pixelShaderConstantF;
|
float *pixelShaderConstantF;
|
||||||
|
|
||||||
/* Indexed Vertex Blending */
|
/* Indexed Vertex Blending */
|
||||||
D3DVERTEXBLENDFLAGS vertex_blend;
|
WINED3DVERTEXBLENDFLAGS vertex_blend;
|
||||||
FLOAT tween_factor;
|
FLOAT tween_factor;
|
||||||
|
|
||||||
/* RenderState */
|
/* RenderState */
|
||||||
|
|
|
@ -442,6 +442,14 @@ typedef enum _WINED3DRENDERSTATETYPE {
|
||||||
#define WINEHIGHEST_RENDER_STATE WINED3DRS_BLENDOPALPHA
|
#define WINEHIGHEST_RENDER_STATE WINED3DRS_BLENDOPALPHA
|
||||||
/* Highest WINED3DRS_ value */
|
/* Highest WINED3DRS_ value */
|
||||||
|
|
||||||
|
typedef enum _WINED3DVERTEXBLENDFLAGS {
|
||||||
|
WINED3DVBF_DISABLE = 0,
|
||||||
|
WINED3DVBF_1WEIGHTS = 1,
|
||||||
|
WINED3DVBF_2WEIGHTS = 2,
|
||||||
|
WINED3DVBF_3WEIGHTS = 3,
|
||||||
|
WINED3DVBF_TWEENING = 255,
|
||||||
|
WINED3DVBF_0WEIGHTS = 256
|
||||||
|
} WINED3DVERTEXBLENDFLAGS;
|
||||||
|
|
||||||
typedef struct _WINED3DDISPLAYMODE {
|
typedef struct _WINED3DDISPLAYMODE {
|
||||||
UINT Width;
|
UINT Width;
|
||||||
|
|
Loading…
Reference in a new issue