mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 02:45:36 +00:00
Example now reads the poem from Data\Poem.txt instead from an embedded resource.
This commit is contained in:
parent
55f8be2bd6
commit
eb31744ad0
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue