public SizeF DrawTextLine(string text, Vector3 position, Color4 colour, QFontAlignment alignment = QFontAlignment.Centre, QFont font = null) { if (font == null) { font = DefaultFont.Font; } return(FontDrawing.Print(font, text, position, alignment, (Color)colour)); }
public void Dispose() { foreach (Scene scene in SceneList) { scene.Dispose(); } SceneList.Clear(); GameFontLibrary.Dispose(); FontDrawing.Dispose(); }
public void Draw(double time) { FontDrawing.DrawingPrimitives.Clear(); Scene excl = SceneList.Where(scene => scene.Visible && !scene.Removed).FirstOrDefault(scene => scene.Exclusive); if (excl == null) { foreach (Scene scene in SceneList.Where(screen => screen.Visible && !screen.Removed)) { scene.Draw(time); } } else { excl.Draw(time); } FontDrawing.RefreshBuffers(); FontDrawing.Draw(); }
public SizeF DrawProcessedText(ProcessedText pText, Vector3 position, Color4 colour) { return(FontDrawing.Print(DefaultFont.Font, pText, position, (Color)colour)); }