Hi everyone. I'm trying to figure out how to convert C# code to VB.Net, and so far, this is the best I can do:
Imports System
Imports System.Collections.Generic
Imports AgateLib
Imports AgateLib.DisplayLib
Imports AgateLib.Geometry
Namespace TestingGame
Class Initialising
Public Shared Sub Main()
Using AgateSetup
As New AgateSetup
()
AgateSetup.InitializeAll()
If AgateSetup.WasCanceled Then
Return
End If
DisplayWindow.CreateWindowed("Testing App", 640, 480)
While Display.CurrentWindow.IsClosed = False
Display.BeginFrame()
Display.Clear(Color.Aqua)
Display.EndFrame()
Core.KeepAlive()
End While
End Using
End Sub
Sub DrawStuff()
Dim srface
= New Surface
(My.
Resources.
fallout.
ToString)
srface.Draw(20, 30)
End Sub
End Class
End Namespace
Basically what happens is an error pops up at the line saying "AgateSetup.InitializeAll(): No display drivers registered." Well, I guess that makes sense, so how do I register them?
It looks like your code is
It looks like your code is fine. Probably you are missing a display driver from the directory where your executable is. If you want to use OpenGL, check that directory for AgateOTK.dll and OpenTK.dll and put them in there if they aren't there.