|
Main / IrrlichtDiary12 May 2008Colors are A,R,G,B instead of R,G,B,A Fonts different than the default need to be generated. There is a tool for this at: http://www.gljakal.com/irrfontmaker/index.php If you try to install it in CSL don't install it to Program Files, install it to the Desktop, otherwise it won't work. -Elliot 09 May 2008Using 'rect' for rectangle inside of constructors, or at the very least, passing by reference, does not seem to work. Try and just create a rectangle the line above, and then pass the value of the rectangle into whichever constructor you are using. Rectangles are useful for GUI elements such as buttons and textfields. Any text you wish to set for a button via variables can be done using the stringw constructor. You can make something like 'stringw text' and later 'text = stringw("Important Text")' Irrlicht wants char arrays, so you do a 'text.c_str()' inside a setText call. This works great for text and numbers: the stringw constructor automatically converts numbers into text, so if you want to display a number such as '8' on screen, stored in variable 'number', then you can just do a setText(stringw(number).c_str()) You will run into situations where you want to output to the screen, and this should help some -Trevor 01 May 2008Irrlicht draws in a left-handed coordinate system. -Elliot 18 April 2008How to dynamically set buttons visible/invisible. create a pointer to an IGUIElement: IGUIElement* button then where ever it is you make your buttons: button = env->addbutton(...); where env (in our code) is an IGUIEnvironment. the addbutton() returns an IGUIButton which is an IGUIElement. This is an easy way to create buttons and keep tabs on them and have control over their attributes. -Justin
16 April 2008I think *this* is important to remember. (This is an example post). Please leave your name with your post, so your classmates can contact you with questions. Written by Yoh Suzuki. |