From eb31744ad098d5339371adf3677d997637f719fa Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 20 Oct 2007 13:41:39 +0000 Subject: [PATCH] Example now reads the poem from Data\Poem.txt instead from an embedded resource. --- Source/Examples/Tutorial/Fonts.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Examples/Tutorial/Fonts.cs b/Source/Examples/Tutorial/Fonts.cs index 49043056..92d3b1df 100644 --- a/Source/Examples/Tutorial/Fonts.cs +++ b/Source/Examples/Tutorial/Fonts.cs @@ -13,6 +13,7 @@ using OpenTK; using OpenTK.Fonts; using OpenTK.OpenGL; using OpenTK.Input; +using System.IO; namespace Examples.Tutorial { @@ -25,7 +26,7 @@ namespace Examples.Tutorial TextureFont serif; - string[] poem = Resources.Poem.Replace('\r', ' ').Split('\n'); + string[] poem = new StreamReader("Data\\Poem.txt").ReadToEnd().Replace('\r', ' ').Split('\n'); float scroll_speed; float scroll_position; float initial_position;