text_win
is an object which allows you to print to
Rogus's text output window. There is only one text_win
,
and it can be accessed through the Rogus_McBogus member tw
.
class text_win { public: enum msgt { info, warn, err }; typedef void outfn(const char*, msgt); void pr( const char *format, ... ); };
void pr( const char *format, ... )
tw.pr()
prints its printf
-style
argument(s) to Rogus' text output window. Note that, for compatibility
with older versions of Rogus, either \r
or
\n
can be used to start a new line, but it is probably
better to move toward using \n
exclusively, since this is
the standard the rest of the world uses.