[Previous] [Next] [Up] [Home] S3D Pascal Bindings
S3DTK_TriangleSetEx
Set state and draw triangles.
Method of:
TS3DTK_FUNCTION_LISTSyntax:
S3DTK_TriangleSetEx: function(
pFuncStruct: Pointer;
pVertexSet: PULONG;
NumVertexes: ULONG;
SetType: ULONG
pSetState: PULONG;
NumStates: ULONG): ULONG; cdecl;
Parameters:
- pFuncStruct - Pointer to the TS3DTK_FUNCTION_LIST that contains this method.
- pVertexSet - A pointer to an array of pointers where each pointer points to a TS3DTK_VERTEX_LIT or TS3DTK_VERTEX_TEX.
- NumVertexes - Number of vertices to draw from the array.
- SetType - The type of primitives. This can be one of S3DTK_TRILIST, S3DTK_TRISTRIP or S3DTK_TRIFAN.
- pSetState - Pointer to an array of ULONG key-value pairs.
- NumStates - The number of pairs in the array.
Returns:
S3DTK_OK if successful, S3DTK_ERR otherwise.
Description:
This is the same as a combination of S3DTK_SetState followed by S3DTK_TriangleSet. The values for the state are the same as the former.
Unit: S3DTK
See Also:
S3DTK_TriangleSet (in TS3DTK_FUNCTION_LIST), S3DTK_SetState (in TS3DTK_FUNCTION_LIST)
[Previous] [Next] [Up] [Home] S3D Pascal Bindings