For whatever reason, in 1.6.1, all windows created with IGUIEnvironment::addWindow() are transparent. I don't know how to fix this and it's quite annoying. I've tried it on all the drivers and I still get the same result. To make sure it wasn't some other code, I threw together a test and it still did the same thing.
Code: Select all
#include <irrlicht.h>
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
using namespace irr;
using namespace core;
using namespace video;
using namespace gui;
int main(void)
{
IrrlichtDevice* device = createDevice();
IVideoDriver* vd = device->getVideoDriver();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addWindow(rect<s32>(100, 100, 500, 500), false, L"Test Window");
while(device->run())
{
if(device->isWindowActive())
{
vd->beginScene(true, true, SColor(255, 0, 0, 255));
guienv->drawAll();
vd->endScene();
}
else
device->yield();
}
return 0;
}