mpatton Posted April 23, 2012 Share Posted April 23, 2012 Hi all,More of a general question about debuging code in 0 a.d. I've got some simple printf statements that I would like to appear in the console to see if my calculations are correct, however nothing appears to be printing. I'm assuming your re-routing STD out or something somewhere. In any case how can I get my stuff to print out? Position of the print statements in the code is within TerrainRenderer.cpp just before the shaders are used.thanks in advanceMichael Link to comment Share on other sites More sharing options...
fcxSanya Posted April 23, 2012 Share Posted April 23, 2012 I think you can use debug_printf Link to comment Share on other sites More sharing options...
Ykkrosh Posted April 23, 2012 Share Posted April 23, 2012 I'm fairly sure printf should work when on Linux. debug_printf(L"message", ...) should work too (and also works on Windows, via Visual Studio's debug output window). There's also LOGWARNING(L"message", ...) which displays the messages in the game window. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now