Use th new API in the demo.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Dashboard.BlurgText;
|
||||
using BlurgText;
|
||||
using Dashboard.BlurgText;
|
||||
using Dashboard.BlurgText.OpenGL;
|
||||
using Dashboard.Controls;
|
||||
using Dashboard.Drawing;
|
||||
@@ -52,7 +53,7 @@ PhysicalWindow window = (PhysicalWindow)app.CreatePhysicalWindow();
|
||||
MessageBox box = MessageBox.Create(window, "Are you sure you want to exit?", "Confirm Exit", MessageBoxIcon.Question,
|
||||
MessageBoxButtons.YesNo);
|
||||
|
||||
// window.Title = "DashTerm";
|
||||
window.Title = "DashTerm";
|
||||
TK.Window.SetMinClientSize(window.WindowHandle, 300, 200);
|
||||
TK.Window.SetClientSize(window.WindowHandle, new Vector2i(320, 240));
|
||||
TK.Window.SetBorderStyle(window.WindowHandle, WindowBorderStyle.ResizableBorder);
|
||||
@@ -106,7 +107,7 @@ IShader shader = direct.CreatePipeline(new GlslShaderCreateInfo()
|
||||
|
||||
void main()
|
||||
{
|
||||
fcolor = vcolor;
|
||||
fcolor = vcolor;
|
||||
}
|
||||
|
||||
""",
|
||||
@@ -133,10 +134,15 @@ window.EventRaised += (sender, eventArgs) =>
|
||||
app.Run(true, source.Token);
|
||||
|
||||
|
||||
class BlurgTextExtensionFactory : IBlurgDcExtensionFactory
|
||||
class BlurgTextExtensionFactory : IBlurgTextLoader
|
||||
{
|
||||
public BlurgDcExtension CreateExtension(BlurgTextExtension appExtension, DeviceContext dc)
|
||||
{
|
||||
return new BlurgGLExtension();
|
||||
}
|
||||
|
||||
public void Configure(Blurg blurg)
|
||||
{
|
||||
blurg.EnableSystemFonts();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user