Use new API.

Fix initial message to "The quick brown fox jumped over the lazy dog."
This commit is contained in:
the_fiddler 2008-12-19 15:37:09 +00:00
parent 3a2aa4ece6
commit 7a7718a57c
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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();
}