Page 1 of 1

env.addimage not working

Posted: Fri Sep 22, 2006 10:52 pm
by grunt

Code: Select all

Sub Main()

        Dim device As New IrrlichtDevice(DriverType.DIRECT3D9, New Dimension2D(1024, 768), 32, True, True, True)
        device.GUIEnvironment.AddButton(New Rect(10, 210, 100, 240), Nothing, 101, "New Game")

        device.GUIEnvironment.AddImage(device.VideoDriver.GetTexture("c:\logo.jpg"), New Position2D(10, 10), False, Nothing, 0, "")


        While device.Run()
            device.VideoDriver.BeginScene(True, True, New Color(0, 122, 65, 171))
            device.SceneManager.DrawAll()
            device.GUIEnvironment.DrawAll()
            device.VideoDriver.EndScene()
        End While
    End Sub
image never draws? Whats up with that?

Posted: Sat Sep 23, 2006 2:36 am
by grunt
hmmm. looks like when i comment out the add button code, the button still shows up. So for some reason when i build it, even though it says build successful, the new version isnt being output.

Posted: Sat Sep 23, 2006 7:55 am
by grunt
ahhh. so stupid... had my output directory set to release and not debug.