but plz read the readme
![Smile :)](./images/smilies/icon_smile.gif)
http://home.wanadoo.nl/batavier.kerkrad ... 050Rel.zip
well, you can find it on that location, and i hope you will like it.
and i hope to get some tips how i can improve my programming skills
![Smile :)](./images/smilies/icon_smile.gif)
FleshCrawler wrote: and i hope to get some tips how i can improve my programming skills
Code: Select all
node2->setMaterialTexture( 0, driver->getTexture("data/zombie/zombie.jpg") );
if (node2 !=NULL){
LogWrite("Mesh 2 Texture Loaded...\n");
}
else
{
LogWrite("Mesh 2 Texture Loading Failed (File not found)...\n");
}
Code: Select all
ITexture* t=driver->getTexture("data/zombie/zombie.jpg");
if (t !=NULL){
LogWrite("Mesh 2 Texture Loaded...\n");
node2->setMaterialTexture( 0, t);
}
else
{
LogWrite("Mesh 2 Texture Loading Failed (File not found)...\n");
}
Code: Select all
//Drop the Irrlicht device.
device->drop();
if (device !=NULL){
LogWrite("Device Destruction Succes...\n");
}
else
{
LogWrite("Device Destruction Failed...\n");
}
//return to windows
return 0;
Code: Select all
class CDemo : public IEventReceiver
{
public:
...
virtual bool OnEvent(SEvent event);
private:
...
};
Code: Select all
bool CDemo::OnEvent(SEvent event)
{
if (event.EventType == EET_KEY_INPUT_EVENT &&
event.KeyInput.Key == KEY_ESCAPE &&
event.KeyInput.PressedDown == false)
{
// user wants to quit.
device->closeDevice();
}
return false;
}
Code: Select all
while(device->run() && driver)
{
//do stuff
}
Code: Select all
while( device->run() )
{
//code goes here
}
device->drop();
return 0;
Code: Select all
void CDemo::run()
{
device = createDevice(driverType,
resolutionType , 16, fullscreen);
....... More code here
}
Code: Select all
void CDemo::run()
{
device = createDevice(driverType,
resolutionType , 16, fullscreen, false, this);
....... More code here
}
Code: Select all
if (device->closeDevice !=NULL){
LogWrite("Demo Successfully Exit...\n");
Code: Select all
if ( device->run() ){
LogWrite("Demo Successfully Exit...\n");