Search code examples
c#sfmlsfml.net

How do I use text in SFML.NET?


I just downloaded SFML.NET and added a reference to the library DLLs included with it, but it seems the Text class is not there. In the example on the site, it is clear that a Text object being used... so the example won't compile. See for yourself...

alt text http://filebox.me/files/5gubdwfcr_helpme.png

There's only Font, no Text! Anyone knows what I could be doing wrong?


Solution

  • You probably want to use the String2D class (the String class in the documentation) to actually draw text. The variable of this class in the tutorial is called Text, which is probably where you were confused.