gg.Irrlicht / gg.IrrBMAX - can you feel the love?

BlitzMax Forums/BlitzMax Programming/gg.Irrlicht / gg.IrrBMAX - can you feel the love?

okay folks... i just finished converting the first Irrlicht sample (hello world). things went pretty well after a rather disgruntling copy/paste bug :) below is the converted sample without the comments (the final will have all relavant comments still in it). you can see the original with comments here or if you have the Irrlicht distribution, the samples are included.

Framework BRL.Blitz
Import gg.IrrBMAX

Strict

Local device:T_irrIrrlichtDevice=T_irrIrrlichtDevice.create(EDT_SOFTWARE,T_irrDimension2d_s32.create(640,480),16,False,False,False,0)

device.setWindowCaption("Hello World! - Irrlicht Engine Demo")

Local driver:T_irrIVideoDriver=device.getVideoDriver()
Local smgr:T_irrISceneManager=device.getSceneManager()
Local guienv:T_irrIGUIEnvironment=device.getGUIEnvironment()

guienv.addStaticText("Hello World! This is the Irrlicht Software renderer!",T_irrRect_s32.createFromVals(10,10,200,22),True)

Local mesh:T_irrIAnimatedMesh=smgr.getMesh("../media/sydney.md2")
Local node:T_irrIAnimatedMeshSceneNode=smgr.addAnimatedMeshSceneNode(mesh)

If node.handle<>0
	node.setMaterialFlag(EMF_LIGHTING,False)
	node.setFrameLoop(0,310)
	node.setMaterialTexture(0,driver.getTexture("../media/sydney.bmp"))
EndIf

smgr.addCameraSceneNode(0,T_irrVector3df.createFromVals(0,30,-40),T_irrVector3df.createFromVals(0,5,0))

While (device.run())

	driver.beginScene(True,True,T_irrSColor.createFromVals(0,200,200,200))
	smgr.drawAll()
	guienv.drawAll()
	driver.endScene()

	FlushMem
Wend

device.drop()