Search found 148 matches
- Thu Feb 03, 2011 8:03 am
- Forum: Beginners Help
- Topic: How to make this kind of window?
- Replies: 6
- Views: 438
How to make this kind of window?
http://img.photobucket.com/albums/v252/wongsiwai/ScreenHunter_01Feb031558.jpg It is quite common to see such kind of window but when it comes to do programming to make it, it seems to be quite hard. How can the program know if the user has selected an option and then it will generate the preview? H...
- Thu Feb 03, 2011 7:22 am
- Forum: Beginners Help
- Topic: saveScene question
- Replies: 7
- Views: 381
- Wed Feb 02, 2011 4:58 pm
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
my skilles ain't that great either so think it could work with smgr->getSceneNodesFromType(scene::ESNT_ANY ^ESNT_CAMERA ^ ESNT_CAMERA_FPS ^ ESNT_CAMERA_MAYA, nodes); // Find all nodes I have tried smgr->getSceneNodesFromType(ESCENE_NODE_TYPE(ESNT_ANY ^ ESNT_CAMERA_FPS ), nodes); But the result of n...
- Wed Feb 02, 2011 4:49 pm
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
- Wed Feb 02, 2011 4:13 pm
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
my skilles ain't that great either so think it could work with smgr->getSceneNodesFromType(scene::ESNT_ANY ^ESNT_CAMERA ^ ESNT_CAMERA_FPS ^ ESNT_CAMERA_MAYA, nodes); // Find all nodes Oh!!! You remind me of that ^ symbol.....does it mean XOR? I will try it out later :D Actually, the reason for look...
- Wed Feb 02, 2011 3:09 pm
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
The automatic conversion has been removed from the string class. You have to encapsulate the variable (or literal) in a constructor call: core::stringw(myvar) didn't knew that. Also you can (I still believe that as I use it) staticText. setText( str.c_str() ); sorry for forgetting the .c_str() smgr...
- Wed Feb 02, 2011 2:55 pm
- Forum: Beginners Help
- Topic: saveScene question
- Replies: 7
- Views: 381
IIRC, the call does not return a stringc. So just use the correct type and see what happens. I think the type is fine.... because I use filePath = core::stringc(Device->getFileSystem()->getWorkingDirectory().c_str()); //bug The bug still exists filePath is stringc ( i.e. c8 ) and c_str() returns c8...
- Wed Feb 02, 2011 12:46 pm
- Forum: Beginners Help
- Topic: saveScene question
- Replies: 7
- Views: 381
The call should return the full path to the current working directory, hence it should never be empty. Are you sure you use the correct assignment there. If you use unicode paths and convert the path to stringc, there can be a bad mapping which would lead to truncated strings. core::stringc lastFil...
- Wed Feb 02, 2011 12:31 pm
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
ok, I fix the problem now.
Thank you.![Very Happy :D](./images/smilies/icon_biggrin.gif)
By the way,
If I want to get nodes other than the camera scene node, how should I change the above code?
Thank you.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
By the way,
Code: Select all
smgr->getSceneNodesFromType(scene::ESNT_ANY, nodes); // Find all nodes
- Wed Feb 02, 2011 11:52 am
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
- Wed Feb 02, 2011 11:39 am
- Forum: Beginners Help
- Topic: How to show u32 data to the screen?
- Replies: 12
- Views: 648
How to show u32 data to the screen?
core::array<scene::ISceneNode *> nodes; smgr->getSceneNodesFromType(scene::ESNT_ANY, nodes); // Find all nodes guienv->addStaticText(nodes.size(), rect<s32>(30,100,260,222), true); In the above code, I would like to see what the value of nodes.size() is. But I don't know how to convert u32 to wchar...
- Wed Feb 02, 2011 8:44 am
- Forum: Beginners Help
- Topic: saveScene question
- Replies: 7
- Views: 381
saveScene question
If I call
, the .irr file will be generated at the project directory.
How can I get the path of that directory?
I have used
but this seems to return an empty string...
Code: Select all
smgr->saveScene(..)
How can I get the path of that directory?
I have used
Code: Select all
Device->getFileSystem()->getWorkingDirectory().c_str()
- Tue Feb 01, 2011 1:41 pm
- Forum: Beginners Help
- Topic: How to simulate "Save as..." using irrlicht?
- Replies: 7
- Views: 341
Start with the code from the file load dialog, turn it into a save dialog. I should add this soon, it's been on my todo list for ages. Thanks for reminding me Hybrid :) I am looking forward to this API. Oh..I think it's quite urgent since my final year project in the university has to be submitted ...
- Tue Feb 01, 2011 11:32 am
- Forum: Beginners Help
- Topic: How to simulate "Save as..." using irrlicht?
- Replies: 7
- Views: 341
- Tue Feb 01, 2011 10:18 am
- Forum: Beginners Help
- Topic: How to simulate "Save as..." using irrlicht?
- Replies: 7
- Views: 341