mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-05-30 06:57:05 +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.Name = "textBox1";
|
||||||
this.textBox1.Size = new System.Drawing.Size(550, 22);
|
this.textBox1.Size = new System.Drawing.Size(550, 22);
|
||||||
this.textBox1.TabIndex = 2;
|
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);
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||||
//
|
//
|
||||||
// FontRendering
|
// FontRendering
|
||||||
|
|
|
@ -77,15 +77,16 @@ namespace Examples.WinForms
|
||||||
//GL.Color4(Color.Blue);
|
//GL.Color4(Color.Blue);
|
||||||
//GL.BlendColor(0, 0, 0, 0);
|
//GL.BlendColor(0, 0, 0, 0);
|
||||||
|
|
||||||
text.Begin();
|
//text.Begin();
|
||||||
|
|
||||||
|
RectangleF rect = new RectangleF();
|
||||||
foreach (Font font in fonts)
|
foreach (Font font in fonts)
|
||||||
{
|
{
|
||||||
text.Print(textBox1.Text, font, Color.White);
|
text.Print(textBox1.Text, font, Color.White, rect);
|
||||||
GL.Translate(0, font.Height, 0);
|
rect.Y += font.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
text.End();
|
//text.End();
|
||||||
|
|
||||||
glControl1.SwapBuffers();
|
glControl1.SwapBuffers();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue