Search found 8 matches

by kompadre
Sat Sep 02, 2006 5:39 am
Forum: Beginners Help
Topic: Were to get started.
Replies: 10
Views: 792

Nowdays, wikipedia is one of the best places to start looking at something I think.

http://en.wikipedia.org/wiki/C++
by kompadre
Sat Sep 02, 2006 2:47 am
Forum: Code Snippets
Topic: (C++) Tell if multiple keyboard buttons are pressed
Replies: 1
Views: 2938

(C++) Tell if multiple keyboard buttons are pressed

Hi, I needed this feature and the simplest way to do it I came up with is to something like


class MyEventReceiver : public irr::IEventReceiver
{
// To store if a key is down, I use this private array
bool isDown[irr::KEY_KEY_CODES_COUNT];
public:
// To make sure the keys are initialized to ...
by kompadre
Sat Sep 02, 2006 1:15 am
Forum: Beginners Help
Topic: char and wchar_t
Replies: 10
Views: 892

You're receiving char and not wide char (wchar_t) from server I guess. The trick to convert one to anoter for you would be something like


char one[128];
wchar_t two[128];
swprintf(two, 128, "%hs", one);


You should do this when actually reading the string from server (filling the Name ...
by kompadre
Sat Sep 02, 2006 12:56 am
Forum: Beginners Help
Topic: char and wchar_t
Replies: 10
Views: 892

try this =)


EnumerationDataStruct enumerationDataStruct;
IGUIEnvironment* guienv = device->getGUIEnvironment();
wchar_t blah[999];
wcscpy(blah, enumerationDataStruct.Name);
guienv->addStaticText(blah, rect<int>(20,40,220,300),true,true,inftab);


or even this


EnumerationDataStruct ...
by kompadre
Thu Aug 31, 2006 12:38 am
Forum: Beginners Help
Topic: Remove animator from animator
Replies: 1
Views: 549

No, as far as I know. When I needed this I used an ugly hack like:

core::list<ISceneNodeAnimator*>::Iterator ait = Animators.begin();
for (; ait != Animators.end();) {
if (!(*ait)->Unused) {
(*ait)->animateNode(this, timeMs);
++ait;
}
else {
ISceneNodeAnimator *unused = *ait;
++ait ...
by kompadre
Sun Aug 20, 2006 2:56 pm
Forum: Beginners Help
Topic: [GUI] Window options
Replies: 4
Views: 432


window->getCloseButton()->setVisible(false);
, as pointed above, works on Irrlicht 1.0 (don´t know about 1.1).
Note: that you have to do this with every window you want to be unclosable.

As for "not-moveblness" I think the quickest way is to add a boolean property (like Movable) to the ...
by kompadre
Wed Aug 09, 2006 6:35 pm
Forum: Beginners Help
Topic: IAnimatedMeshSceneNode->setMesh ?
Replies: 2
Views: 918

Thought so. Thanks very much.
by kompadre
Tue Aug 08, 2006 10:17 pm
Forum: Beginners Help
Topic: IAnimatedMeshSceneNode->setMesh ?
Replies: 2
Views: 918

IAnimatedMeshSceneNode->setMesh ?

Hello,

is there a way to change the mesh of an IAnimatedMeshSceneNode runtime?

Offtopic: registring I got "your email adress has been banned" notice being this my first time on this forum, sort of weird.

Sorry for my rusty english :oops: