are all elements of guielement on alpha chanel, leave as normal?
Imagem game
Code: Select all
#include <irrlicht.h>
#include <sqlite3.h>
using namespace irr;
#include "funcoes.h"
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int room=1;
sqlite3 *db;
#pragma comment(lib, "Irrlicht.lib")
// objetos globais
IrrlichtDevice* device = 0;
IVideoDriver* driver =0;
ISceneManager* smgr = 0;
IGUIEnvironment* guienv = 0;
#include <event_receiver.h>
int main(int argc, char **argv)
{
MyEventReceiver receiver;
// Seta informações da engine
device = createDevice(EDT_OPENGL, dimension2d<s32>(1024, 768), 24,true, false, false, &receiver);
device->setWindowCaption(L"Quiz! - 2004-2008 GAM STUDIO");
driver = device->getVideoDriver();
guienv = device->getGUIEnvironment();
//inicia o título
//Insere os elementos no guienv de login
guienv->addEditBox(L"Nome do Grupo",rect<s32>(500, 400, 650, 420), true, 0, 1);
guienv->addEditBox(L"Codigo do Grupo",rect<s32>(500, 450, 650, 470), true, 0, 2);
//Insere o botão para logar
guienv->addButton(rect<s32>(500,500,550,535), 0, 3, L"Logar");
while(device->run())
{
driver->beginScene(true, true, SColor(255,255,255,255));
//coloca o fundo na tela
driver->draw2DImage(driver->getTexture("media/fundo.jpg"), core::position2d<s32>(0,0),core::rect<s32>(0,0,1024,768),0, video::SColor(255,255,255,255), true);
guienv->drawAll();
driver->endScene();
}
return 0;
}