RE: [Plib-devel] Another New Demo Program for PW
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-04-27 16:55:43
|
Steve, I have a couple of notes on your changes. The first is that the "%lf" is good for the "printf" statements but we need to be careful with the "sscanf" statements. I've put in a "float_value" variable which actually gets read from the strings. The second is a PW issue which I think I raised earlier. The fifth argument of "pwInit" is "int multisample" which in the "pw_demo" program is set to "false". I think an "int" should be "TRUE" and "FALSE" rather than the strict boolean values of "true" and "false". I propose that we either change the "pwInit" function to take a "bool" or else we change "pw.h" to include definitions of "TRUE" and "FALSE" and change the sample programs to pass those. My personal preference is for the latter. John F. Fay joh...@eg... -----Original Message----- From: pli...@li... [mailto:pli...@li...]On Behalf Of Steve Baker Sent: Sunday, April 25, 2004 4:24 PM To: pli...@li... Subject: Re: [Plib-devel] Another New Demo Program for PW Fay John F Contr AAC/WMG wrote: > Since I can never leave well enough alone ... here's a Lorenz strange > attractor demo program. I eventually managed to compile this under Linux - there were a few problems: 1) '%lf' is not allowed in printf's - the 'l' modifier can only be applied to integers - not doubles. Just a plain '%f' is sufficient. 2) FALSE is undeclared in line 332. 3) The variable pargc isn't used. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |