0 Members and 1 Guest are viewing this topic.
type _D3DRENDERSTATETYPE = type DWord; {$EXTERNALSYM _D3DRENDERSTATETYPE} D3DRENDERSTATETYPE = _D3DRENDERSTATETYPE; {$EXTERNALSYM D3DRENDERSTATETYPE} TD3DRenderStateType = _D3DRENDERSTATETYPE;[...]{$EXTERNALSYM D3DRS_PATCHEDGESTYLE} D3DRS_PATCHSEGMENTS = TD3DRenderStateType(164); // Number of segments per edge when drawing patches[...]
Hi,I don't use D3DRS_PATCHSEGMENTS, so I don't know what it is about. I checked Direct3D8.pas and you are right about casting to DWord. Why is this a problem?Code: [Select]type _D3DRENDERSTATETYPE = type DWord; {$EXTERNALSYM _D3DRENDERSTATETYPE} D3DRENDERSTATETYPE = _D3DRENDERSTATETYPE; {$EXTERNALSYM D3DRENDERSTATETYPE} TD3DRenderStateType = _D3DRENDERSTATETYPE;[...]{$EXTERNALSYM D3DRS_PATCHEDGESTYLE} D3DRS_PATCHSEGMENTS = TD3DRenderStateType(164); // Number of segments per edge when drawing patches[...]
Direct3DDevice.SetRenderState(D3DRS_PATCHSEGMENTS, 1);
var segments: single;segments := 1.0;Direct3DDevice.SetRenderState(D3DRS_PATCHSEGMENTS, PDWORD(@sements)^);
I searched the whole source code and it isn't used anywhere. Where could it be?