Ok I found the problem and it's solved here (since at this moment there is not effectively an active team to mantain the headers, you can download that source, update and compile yourself; but I hardly hope we can organize and form a team to mantain and debug the headers until LE3 comes [and hope it will avoid the need a wrapper any more]).
With that you can use this:
try
{
Engine.Initialize(DisplayMode.Window, 800, 600);
Framework.Initialize();
FileSystem.Initialize();
//FileSystem.AbstractPath = "C:/Leadwerks Engine SDK";
}
catch
{
Engine.Dispose();
}
Mesh cube = new Mesh.Cube();
Framework.Layers.Main.Camera.Position = cube.Position;
Framework.Layers.Main.Camera.Move(new Vector3(0, 0, -2));
Framework.Layers.Main.Camera.PointAt(cube, 3);
while (!(Window.HasRequestedClose || Keyboard.KeyHit(Key.Escape)))
{
Vector3 loc = cube.Position;
Framework.Update();
Framework.Render();
Vector3 newloc = Framework.Layers.Main.Camera.Unproject(loc);
Draw.Text("loc: " + loc.ToString(), 0, 20);
Draw.Text("unproject: " + newloc.ToString(), 0, 40);
Draw.Text("Test", (int)newloc.X, (int)newloc.Y);
Draw.Text("This is some text");
Graphics.Flip();
}
Engine.Dispose();