Something wrong with AppTitle()
BlitzMax Forums/BlitzMax Beginners Area/Something wrong with AppTitle()| 
 | ||
| What am I doing wrong with the AppTitle() function in my code? SuperStrict Import irrlicht.b3d Import irrlicht.core Import brl.audio Import pub.openal Import pub.freeaudio Import brl.directsoundaudio Import BaH.irrklangaudio Import BaH.irrklang Global AppName:String AppName = "Application" Global AudioDriver:String AudioDriver = "irrKlang" AppTitle = (AppName) SetAudioDriver(AudioDriver) Global gwidth:Float Global gheight:Float Global gdepth:Float gwidth = 800 gheight = 600 gdepth = 32 gmode = 1 ib3d_Graphics3D(gwidth, gheight, gdepth, 2) Global mylight:LIGHT Global myplayer:PRIMITIVE Global mycamera:CAMERA Global mysound:TSound mylight = ib3d_CreateLight() mycamera = ib3d_CreateCamera() myplayer = ib3d_CreateSphere(24) ib3d_PositionEntity myplayer, 0, 0, 5 While Not AppTerminate() And Not ib3d_KeyHit(KEY_ESCAPE) ib3d_UpdateWorld ib3d_RenderWorld Wend ib3d_EndGraphics End | 
| 
 | ||
| What happens? My guess is that AppTitle is not compatible with irrlicht... | 
| 
 | ||
|  My guess is that AppTitle is not compatible with irrlicht...   darn! :P | 
| 
 | ||
| If you were using "pure" irrlicht, it looks like you can do this: 
Local device:IrrlichtDevice = IrrlichtDevice.Create(EDT_BURNINGVIDEO, _DIMENSION2DI(640, 480), 16, False, False, False, Null)
device.setWindowCaption("Hello World! - Irrlicht Engine Demo")
 | 
| 
 | ||
| LOL! Try this: SuperStrict Import irrlicht.b3d Global AppName:String = "Application" AppTitle = AppName Global gwidth:Float = 800 Global gheight:Float = 600 Global gdepth:Float = 32 Global gmode:Int = 1 ib3d_Graphics3D(gwidth, gheight, gdepth, 2) If _g_ib3d_engine.device Then _g_ib3d_engine.device.setWindowCaption(AppName) ' this acts like AppTitle Global mylight:LIGHT Global myplayer:PRIMITIVE Global mycamera:CAMERA Global mysound:TSound mylight = ib3d_CreateLight() mycamera = ib3d_CreateCamera() myplayer = ib3d_CreateSphere(24) ib3d_PositionEntity myplayer, 0, 0, 5 While Not AppTerminate() And Not ib3d_KeyHit(KEY_ESCAPE) ib3d_UpdateWorld ib3d_RenderWorld Wend ib3d_EndGraphics End Last edited 2012 | 
| 
 | ||
| Thanks therevills |