mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-28 11:06:54 +00:00
Use new API.
Fix initial message to "The quick brown fox jumped over the lazy dog."
This commit is contained in:
parent
3a2aa4ece6
commit
7a7718a57c
|
@ -68,7 +68,7 @@
|
|||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(550, 22);
|
||||
this.textBox1.TabIndex = 2;
|
||||
this.textBox1.Text = "The quick fox jumped over the lazy dogs. 0123456789";
|
||||
this.textBox1.Text = "The quick brown fox jumped over the lazy dogs. 0123456789";
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||
//
|
||||
// FontRendering
|
||||
|
|
|
@ -77,15 +77,16 @@ namespace Examples.WinForms
|
|||
//GL.Color4(Color.Blue);
|
||||
//GL.BlendColor(0, 0, 0, 0);
|
||||
|
||||
text.Begin();
|
||||
//text.Begin();
|
||||
|
||||
RectangleF rect = new RectangleF();
|
||||
foreach (Font font in fonts)
|
||||
{
|
||||
text.Print(textBox1.Text, font, Color.White);
|
||||
GL.Translate(0, font.Height, 0);
|
||||
text.Print(textBox1.Text, font, Color.White, rect);
|
||||
rect.Y += font.Height;
|
||||
}
|
||||
|
||||
text.End();
|
||||
//text.End();
|
||||
|
||||
glControl1.SwapBuffers();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue