troubles on iphone with irrlicht!!!!help!!!!!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
seeking
Posts: 7
Joined: Sun May 02, 2010 7:02 am

troubles on iphone with irrlicht!!!!help!!!!!

Post by seeking »

hi, guys, i try to use irrlicht on iphone, i did it like:
step 1: download the branch of opengles, and make .a succeed.
step 2: create a iphone opengles project, and add my codes:

Code: Select all

#import <UIKit/UIKit.h>
#import "irrlicht.h"
using namespace irr;

int main(int argc, char *argv[]) 
{
	irr::IrrlichtDevice* device = irr::createDevice(irr::video::EDT_OGLES1, irr::core::dimension2d<u32>(480, 320), 16, true);
	
	scene::ISceneManager* smgr = device->getSceneManager();
	video::IVideoDriver* driver = device->getVideoDriver();
	
	while (device->run())
	{
		driver->beginScene(true, true, video::SColor(255, 255, 0, 255));
		smgr->drawAll();
		driver->endScene();
	}
	
	device->drop();
}
it doesn't work at all, the createDevice is succeed, and the main loop worked well, but nothing was displayed, just black, whatever clear color i changed. please help me, thank you very much.
stash
Posts: 47
Joined: Wed Dec 12, 2007 11:28 am
Location: Brasil, SC

Post by stash »

I think that you need to load a map, or model..
seeking
Posts: 7
Joined: Sun May 02, 2010 7:02 am

Post by seeking »

though i didn't load any mesh, nothing changed when i reset the the clear color, so something must be wrong.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Please don't cross post in other forum sections. If you feel like being stuck in the wrong forum, just ask for the thread to be moved.
seeking
Posts: 7
Joined: Sun May 02, 2010 7:02 am

Post by seeking »

sorry! i don't know how to do, never happened again.
Post Reply