IWineD3DDeviceImpl_SetRenderState
Chris Ahrendt
celticht32 at aol.com
Sat Jul 26 20:25:36 CDT 2008
Attached to this note is a patch I have been working on for the past
few days to finish out the above function.
What I did was use MSDN for the definition :
/*****
* Get / Set Render States
* TODO: Verify against dx9 definitions
*
Direct X 9 Definition:
Parameters
State
[in] Device state variable that is being modified. This parameter
can be any member of the D3DRENDERSTATETYPE enumerated type.
Value[in] New value for the device render state to be set.
The meaning of this parameter is dependent on the value specified
for State. For example, if State were D3DRS_SHADEMODE, the second
parameter would be one member of the D3DSHADEMODE enumerated type.
Return Values
If the method succeeds, the return value is D3D_OK.
D3DERR_INVALIDCALL is returned if one of the arguments is invalid.
Requirements
Header: Declared in D3D9.h
should I open a bug and then post this to the patches list...
Please let me know what you think.
The Following States have no rules for their valid values associated
with them as far as I can find.
WINED3DRS_BLENDOPALPHA:
WINED3DRS_DEPTHBIAS:
WINED3DRS_SRGBWRITEENABLE:
WINED3DRS_BLENDFACTOR:
WINED3DRS_COLORWRITEENABLE1:
WINED3DRS_COLORWRITEENABLE2:
WINED3DRS_COLORWRITEENABLE3:
WINED3DRS_ADAPTIVETESS_X:
WINED3DRS_ADAPTIVETESS_Y:
WINED3DRS_ADAPTIVETESS_Z:
WINED3DRS_ADAPTIVETESS_W:
WINED3DRS_SLOPESCALEDEPTHBIAS:
WINED3DRS_TWEENFACTOR:
WINED3DRS_COLORWRITEENABLE:
WINED3DRS_POINTSIZE_MAX:
WINED3DRS_WRAP0:
WINED3DRS_WRAP1:
WINED3DRS_WRAP2:
WINED3DRS_WRAP3:
WINED3DRS_WRAP4:
WINED3DRS_WRAP5:
WINED3DRS_WRAP6:
WINED3DRS_WRAP7:
WINED3DRS_WRAP8:
WINED3DRS_WRAP9:
WINED3DRS_WRAP10:
WINED3DRS_WRAP11:
WINED3DRS_WRAP12:
WINED3DRS_WRAP13:
WINED3DRS_WRAP14:
WINED3DRS_WRAP15:
WINED3DRS_STENCILREF:
WINED3DRS_FOGSTART:
WINED3DRS_FOGEND:
WINED3DRS_FOGDENSITY:
WINED3DRS_CLIPPLANEENABLE:
WINED3DRS_POINTSIZE:
WINED3DRS_POINTSIZE_MIN:
WINED3DRS_POINTSCALE_A:
WINED3DRS_POINTSCALE_B:
WINED3DRS_POINTSCALE_C:
Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://www.winehq.org/pipermail/wine-devel/attachments/20080726/39253607/attachment-0001.txt
More information about the wine-devel
mailing list