env.addimage not working

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
grunt
Posts: 96
Joined: Tue Aug 17, 2004 9:14 pm
Contact:

env.addimage not working

Post 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?
grunt
Posts: 96
Joined: Tue Aug 17, 2004 9:14 pm
Contact:

Post 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.
grunt
Posts: 96
Joined: Tue Aug 17, 2004 9:14 pm
Contact:

Post by grunt »

ahhh. so stupid... had my output directory set to release and not debug.
Locked