From: <tj...@us...> - 2011-05-25 23:07:35
|
Revision: 14744 http://alleg.svn.sourceforge.net/alleg/?rev=14744&view=rev Author: tjaden Date: 2011-05-25 23:07:28 +0000 (Wed, 25 May 2011) Log Message: ----------- Use standard style in documentation example. Don't suggest setting up transformations in a function called logic(). Modified Paths: -------------- allegro/branches/5.1/docs/src/refman/transformations.txt Modified: allegro/branches/5.1/docs/src/refman/transformations.txt =================================================================== --- allegro/branches/5.1/docs/src/refman/transformations.txt 2011-05-25 19:49:52 UTC (rev 14743) +++ allegro/branches/5.1/docs/src/refman/transformations.txt 2011-05-25 23:07:28 UTC (rev 14744) @@ -82,17 +82,13 @@ stack copying. The reference will not be stored in the Allegro library so it is safe to pass references to local variables. - void setup_my_transformation(){ - ALLEGRO_TRANSFORM transform; - al_translate_transform(&transform, 5, 10); - al_use_transform(&transform); + void setup_my_transformation(void) + { + ALLEGRO_TRANSFORM transform; + al_translate_transform(&transform, 5, 10); + al_use_transform(&transform); } - void logic(){ - setup_my_transformation(); - // .. rest of code - } - *Parameters:* * trans - Transformation to use This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |