public void TestTextRendering() { var game = new DX11Game(); game.InitDirectX(); var wrapper = new DX11FontWrapper(game.Device); game.GameLoopEvent += delegate { wrapper.Draw("Welcome!", 128, 10, 10, new Color4(1, 0, 0)); wrapper.Draw("Welcome!", 128, 10, 210, new Color4(0, 1, 0)); wrapper.Draw("Welcome!", 128, 10, 410, new Color4(0, 0, 1)); //TODO: game.MarkFrameBuffer(); }; game.Run(); }
public FastTextareaUpdater() { fontWrapper = new DX11FontWrapper(TW.Graphics.Device,"Verdana"); }
public RecordingSimulator() { fontWrapper = new DX11FontWrapper(TW.Graphics.Device, "Verdana"); RootRecordingDirectory = TWDir.Test.CreateSubdirectory("Recordings"); }