Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > setParamCount

setParamCount

Declaration
Parameters
Return Value
Remarks
Example
See Also

Declaration

pParam __stdcall setParamCount(
	int count	// number of parameters
);
Top of page

Parameters

count
Number of parameters to allocate space for.
Top of page

Return Value

A pointer to the allocated param array (array of tParam). Top of page

Remarks

This function is available through the API. Use it only from within
initParams to set the size of the model parameter array. After calling this function you may assign parameters (assignParam) for parameter indices 0..count-1. Top of page

Example

void __stdcall initParams(void) { setParamCount(4); // index name [constraints] default value assignParam(0, "World Width [int,>0]", 30); assignParam(1, "World Height [int,>0]", 30); assignParam(2, "Initial Density [>0,<1]", 0.5); assignParam(3, "Fade Rate [int, >0,<=255]", 255); }
Top of page

See Also

initParams, assignParam.
Top of page
[Rik's Office Hours] [Contact Rik]
Last updated: Fri Apr 30 2004, 1:44pm