Revision: 1918
Author: pc0der
Date: Sat Jun 30 14:17:07 2012
Log: GUI scene node fix.
http://code.google.com/p/tubras/source/detail?r=1918
Modified:
/trunk/tools/irrlicht/extensions/CGUISceneNode.h
=======================================
--- /trunk/tools/irrlicht/extensions/CGUISceneNode.h Fri Jan 13 11:19:38
2012
+++ /trunk/tools/irrlicht/extensions/CGUISceneNode.h Sat Jun 30 14:17:07
2012
@@ -501,10 +501,13 @@
occured. This pointer should not be dropped. See
IReferenceCounted::drop() for more information. */
virtual gui::IGUIImage* addImage(const core::rect<s32>&
rectangle,
- gui::IGUIElement* parent=0, s32 id=-1, const wchar_t*
text=0) {
+ gui::IGUIElement* parent=0, s32 id=-1, const wchar_t*
text=0, bool useAlphaChannel=true) {
gui::IGUIImage* img = new gui::CGUIImage(this,
parent ? parent : this,
id, rectangle);
+ if (useAlphaChannel)
+ img->setUseAlphaChannel(true);
+
if (text)
img->setText(text);