Search found 40 matches

by eneru
Sun Jul 01, 2007 11:59 am
Forum: Beginners Help
Topic: Where do I declare global variables?
Replies: 6
Views: 551

i believe you should declare each global variable you are using in each cpp as being extern (ex : "extern int i" for a global "int i" variable)
by eneru
Thu Jun 21, 2007 11:11 pm
Forum: Code Snippets
Topic: New GUI skin [update: new skins, support for 1.5/1.6]
Replies: 112
Views: 75247

thanks for the code, it will help me make my skins scalable too when i need to ;)
by eneru
Thu Jun 21, 2007 6:59 pm
Forum: Beginners Help
Topic: IGUIEnvironment::get/setFocus?
Replies: 3
Views: 357

btw, last time i tested the focus on a editBox was kept even after the element was hidden via a setVisible(false) => is it normal behaviour or a bug ??
by eneru
Thu Jun 21, 2007 7:45 am
Forum: Beginners Help
Topic: why big games doesnt use pictures for textures?
Replies: 4
Views: 661

you will have to edit the picture you took IRL so it looks good when multiplied side by side on a terrain, but of course you may use them, and lots of game do ! (as long as their graphic orientation allows it -- realistic)
by eneru
Tue Jun 19, 2007 4:24 pm
Forum: Code Snippets
Topic: (C++) Simple to use Event Receiver class for Irrlicht 1.3
Replies: 70
Views: 50272

ok, i don't have windows to test it but from what i understood the events are not dealt exactly the same way on windows or linux, thus the (weird) problem :) If my hack still works on windows then the problem is completely solved ^^ and yes i placed the 2 methods well ;) There is also another proble...
by eneru
Mon Jun 18, 2007 2:12 pm
Forum: Beginners Help
Topic: problem with a simple class using position2d<s32>
Replies: 2
Views: 416

you need to instantiate your button before applying methods on it !

=> btntest = new CGButton();
by eneru
Mon Jun 18, 2007 12:08 pm
Forum: Beginners Help
Topic: question about events and GUI
Replies: 3
Views: 413

ok, so i better handle them in each of my GUI classes ? it will be indeed more easier for me (and much, much clearer), though i wanted to be sure that it would not be less efficient than one big event receiver :)
by eneru
Mon Jun 18, 2007 10:55 am
Forum: Beginners Help
Topic: question about events and GUI
Replies: 3
Views: 413

question about events and GUI

Hi :) i would like to know how the events work with the built in GUI, as each iguielement has a method onEvent.... => are all events re-sent to the whole GUI "tree" ? or are the GUI events the only one who are re-sent ?? (ie, if there is a keyboard event, i hope it isn't sent everywhere in...
by eneru
Sat Jun 16, 2007 8:36 pm
Forum: Beginners Help
Topic: addImage in GUI distorts my Image file??
Replies: 9
Views: 768

addImage uses the original dimension of the texture though, right ?
So even if the image is not a power of 2 it should work... a priori.. ?
by eneru
Thu Jun 14, 2007 10:50 am
Forum: Beginners Help
Topic: Question about this pointer
Replies: 12
Views: 649

@eneru, it's a taste question, but most C++ coding styles don't use this explicitly in cases it is clear. Calling member functions inside other member functions on the same instance is more or less the default case. Instead use of other functions should be made obvious. Like when calling a function...
by eneru
Thu Jun 14, 2007 12:32 am
Forum: Beginners Help
Topic: Question about this pointer
Replies: 12
Views: 649

bitplane wrote: also, i dont think there's any difference between "this->function()" and "function()"
there is no differences, but the first is much clearer i think :) (more especially for class arguments)
by eneru
Wed Jun 13, 2007 9:26 pm
Forum: Beginners Help
Topic: [SOLVED]problems creating a new IGUIElement...
Replies: 2
Views: 306

thanks a lot !!

i thought that "0" was considered as the "root parent" (aka its value) and didn't get there was this test to be made to "convert it" if necessary !
have a nice day :)
by eneru
Wed Jun 13, 2007 8:40 pm
Forum: Beginners Help
Topic: [SOLVED]problems creating a new IGUIElement...
Replies: 2
Views: 306

[SOLVED]problems creating a new IGUIElement...

i want to create a new IGUIElement which would just draw a background of a certain color, but can't get something to work :s my class def : protected : irr::video::SColor color; public: //! constructor /*! constructor (cf Irrlicht's IGUIElements) \param irr::gui::IGUIEnvironment* environment \param ...
by eneru
Wed Jun 13, 2007 8:02 pm
Forum: Code Snippets
Topic: (C++) Simple to use Event Receiver class for Irrlicht 1.3
Replies: 70
Views: 50272

up ! it is a double post, but for the good hopefully as it works now !!! 8) I am posting the code (there is not much really) so others can use it if they experience problems (@Mastiff : don't hesitate to use it too if you want ;) thanks for the original code btw ;)) if (keyState[event.KeyInput.Key] ...
by eneru
Wed Jun 13, 2007 4:32 pm
Forum: Code Snippets
Topic: (C++) Simple to use Event Receiver class for Irrlicht 1.3
Replies: 70
Views: 50272

it doesn't work :'( or to be more explicit, it works wonderfully but only for some time, after which the key input handler become mad >.> i did this test : int i = 0; if (eventReceiver.keyPressed('M')) { cout << i << " ... pressed" << endl; } if (eventReceiver.keyDown('M')) { i++; cout << ...