GeoInst_DeclareCustomElements



GeoInst_DeclareCustomElements pGeoInst, bWorldMat

Description

Used to begin defining a custom vertex declaration for a GeoInst's instance stream (vertex buffer). This allows for contol over the data that available when drawing each instance; Ex: each instance could contain custom color values. The bWorldMat flag is used to include/omit the plugin's automatic world matrix handling from the custom declaration. If bWorldMat is set to false, the plugin will not generate per-instance world matrices and the Position/Rotation/Scale commands should not be used.

Parameters

pGeoInstINTEGERPointer to the GeoInst being setup
bWorldMatBOOLEANTrue if the GeoInst's instance stream should contain world matrix data.


GeoInst Commands
jGfx Command Index
jGfx Main