Browse Source

point angle interface to avalonias custom built optimised angle.

tmp-winuicomp_with_manual_fbo
Dan Walmsley 6 years ago
parent
commit
8470a399b6
  1. 4
      samples/ControlCatalog.NetCore/Program.cs
  2. 2
      src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

4
samples/ControlCatalog.NetCore/Program.cs

@ -13,6 +13,7 @@ using Avalonia.Skia;
using Avalonia.ReactiveUI;
using Avalonia.Threading;
using Avalonia.Dialogs;
using Avalonia.OpenGL;
namespace ControlCatalog.NetCore
{
@ -116,7 +117,8 @@ namespace ControlCatalog.NetCore
.With(new Win32PlatformOptions
{
EnableMultitouch = true,
AllowEglInitialization = true
AllowEglInitialization = true,
UseWindowsUIComposition = true
})
.UseSkia()
.UseReactiveUI()

2
src/Avalonia.OpenGL/Angle/AngleEglInterface.cs

@ -5,7 +5,7 @@ namespace Avalonia.OpenGL.Angle
{
public class AngleEglInterface : EglInterface
{
[DllImport("avangle.dll", CharSet = CharSet.Ansi)]
[DllImport("av_libGLESv2.dll", CharSet = CharSet.Ansi)]
static extern IntPtr EGL_GetProcAddress(string proc);
public AngleEglInterface() : base(LoadAngle())

Loading…
Cancel
Save