On Wed, Sep 14, 2011 at 12:58 PM, James Turner wrote:
>
> On 14 Sep 2011, at 12:00, Stuart Buchanan wrote:
>
>> OK. We've got something similar already in the C code for exactly this
>> purpose. Might be more efficient to simply expose that over Nasal, but
>> I'm not sure how easy that would actually be.
>
> Pretty trivial, for a function such as sg_random, unless I'm missing 
> something really subtle.

There is a small subtilty. I think we need to use the (IIRC) mt_rand() function
we're using to ensure a repeatable number for the scenery etc.

That uses a structure that is seeded and which controls the sequence of random
numbesr

I think the Nasal layer would need to pass that structure (or a
reference to it) across
the interface.

Probably not too difficult I agree.

-Stuart

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to