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

getSimWidth

Declaration
Remarks
Revisions
Example
See Also

Declaration

int __stdcall getSimWidth(void);
Top of page

Remarks

This function must be provided by the model. It is called together with
getSimHeight at the start of every new simulation to set the size of the simulation space. getSimWidth should return a positive integer indicating the horizontal dimension of the simulation world. Minimum allowed value is one. Top of page

Revisions

API v1.5
  • new! Replaces simBegin.
Top of page

Example

//--------------------------------------------------------------------------- int __stdcall getSimHeight(void) /* Returns vertical extent of simulation space. (Required.) */ { return int(*getParamRef("World Height")); } //--------------------------------------------------------------------------- int __stdcall getSimWidth(void) /* Returns horizontal extent of simulation space. (Required.) */ { return int(*getParamRef("World Width")); } //--------------------------------------------------------------------------- Top of page

See Also

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