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();
}