D3D_DRAW_PRIMITIVE

This command is a wrapper to the DrawPrimitiveUp Method of IDirect3DDevice9. Any primitives drawn this way are not persisted and must be drawn on each cycle.
An array is created containing the vertex date for the relevant FVF. An additional image number can be supplied for FVF types that support textures. The zEnable and lighting flags determine if the primitive is effected by light and z-buffering.

SYNTAX

D3D_DRAW_PRIMITIVE FVF, Primitive Type, Array Name
D3D_DRAW_PRIMITIVE FVF, Primitive Type, Array Name, Image No
D3D_DRAW_PRIMITIVE Camera, zEnable, Lighting, FVF, Primitive Type, Array Name
D3D_DRAW_PRIMITIVE Camera, zEnable, Lighting, FVF, Primitive Type, Array Name, Image No

RELATED INFO

D3DFunc Commands Menu
Index

EXAMPLE

View Showcase Example
View Usage Example