gg.Irrlicht / gg.IrrBMAX - the bell doth toll

BlitzMax Forums/BlitzMax Programming/gg.Irrlicht / gg.IrrBMAX - the bell doth toll

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

While(device.run())
If KeyDown(BRL.KeyCodes.KEY_ESCAPE)
device.closeDevice()
EndIf


If (device.isWindowActive())
driver.beginScene(True, True)

smgr.drawAll()
env.drawAll()

driver.endScene()

' display frames per second in window title
fps = driver.getFPS()
If (lastFPS <> fps) Then
str = "Terrain Renderer - Irrlicht Engine ["
str :+ driver.getName()
str :+ "] FPS:"
str :+ fps

device.setWindowCaption(str)
lastFPS = fps
EndIf
EndIf
FlushMem
Wend

device.drop()