-
Notifications
You must be signed in to change notification settings - Fork 71
Hello World
Lars Brubaker edited this page Mar 12, 2014
·
11 revisions
- In Visual Studio create a new project
- 'Add Existing Project' to the solution
- agg/Agg.csproj
- Csg/Csg.csproj (Todo: should not be needed, used by RenderOpenGL)
- Gui/Gui.csproj
- OpenGlGui/OpenGlGui.csproj (Todo: should not be needed, used by PlatfromWin32)
- PlatformWin32/PlatformWin32.csproj
- RenderOpenGl/RenderOpenGl.csproj (Todo: should not be needed, used by OpenGlGui)
- Tesselate/Tesselate.csproj (Todo: should not be needed, used by RenderOpenGl)
- VectorMath/VectorMath.csproj (used by agg)
- Type in the following code
using System;
using MatterHackers.Agg.UI;
namespace MatterHackers.Agg
{
public class HelloWorld : SystemWindow
{
public HelloWorld()
: base(640, 480)
{
AddChild(new TextWidget("Hellow World", 320, 240, justification: Font.Justification.Center));
ShowAsSystemWindow();
}
[STAThread]
public static void Main(string[] args)
{
new HelloWorld();
}
}
}
-
On 'HellowWorld' -> 'References' -> 'add 'Add Reference'
- Agg.csproj
- Gui.csproj
- PlatformWin32.csproj
-
And Run it!