another silly question - but i cant find an example or posting here in the forums
how do i send some text to the console?
writing to the console?
under 0.4.2 you can call device->getLogger()->log(L"message") to output to the console as well. do something like
i think that's how to do it 
Code: Select all
ILogger* logger = device->getLogger();
logger->log(L"output to console");
i dont see an os namespace in IRR - so the above would be irr:ILogger*
i am not up to 4.2 yet - want to get my app running as it is and then upgrade for the new stuff
for now maybe i will just write to the caption window for the little text output i need to see
so the window caption wants a wchar_t and my text in my code is in a std:string - so how does one convert one type of text to another - i find wchar_t and c8 confusing - can someone describe how these different string types work and how to convert then - for instance, sometimes i want to move a string over to a char so i do a strcpy from string.c_str() to get the actual characters - what would i use for grabbing the text elements of wchar_t and c8 ??
i am gathering up all my questions as i get to know how IRR works and i hope to publish them as some kind of intro document for new users
while i am at it:
- what is the base orientation of IRR - which direction are x,y,z set?
and is it indeed true that the default for objects is to have x,z set to the middle of an object and y to be at the base?
i am not up to 4.2 yet - want to get my app running as it is and then upgrade for the new stuff
for now maybe i will just write to the caption window for the little text output i need to see
so the window caption wants a wchar_t and my text in my code is in a std:string - so how does one convert one type of text to another - i find wchar_t and c8 confusing - can someone describe how these different string types work and how to convert then - for instance, sometimes i want to move a string over to a char so i do a strcpy from string.c_str() to get the actual characters - what would i use for grabbing the text elements of wchar_t and c8 ??
i am gathering up all my questions as i get to know how IRR works and i hope to publish them as some kind of intro document for new users
while i am at it:
- what is the base orientation of IRR - which direction are x,y,z set?
and is it indeed true that the default for objects is to have x,z set to the middle of an object and y to be at the base?
Last edited by powerpop on Fri Jan 09, 2004 10:20 pm, edited 3 times in total.