mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Use OpenGL render engine on non-Windows platforms
This commit is contained in:
@@ -15,6 +15,7 @@ using Microsoft.Iris.Render;
|
||||
using Microsoft.Iris.RenderAPI.Audio;
|
||||
using Microsoft.Iris.UI;
|
||||
using System;
|
||||
using Microsoft.Iris.Render.OpenGL;
|
||||
|
||||
namespace Microsoft.Iris.Session
|
||||
{
|
||||
@@ -68,10 +69,14 @@ namespace Microsoft.Iris.Session
|
||||
int pdwDefaultLayout = 0;
|
||||
Win32Api.IFWIN32(Win32Api.GetProcessDefaultLayout(out pdwDefaultLayout));
|
||||
_rtl = pdwDefaultLayout == 1;
|
||||
|
||||
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
|
||||
#else
|
||||
_rtl = false;
|
||||
|
||||
_engine = OpenGLRenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
|
||||
#endif
|
||||
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(), Dispatcher);
|
||||
|
||||
_session = _engine.Session;
|
||||
TextImageCache.Initialize(this);
|
||||
ScavengeImageCache.Initialize(this);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UIX.RenderApi.OpenGL\UIX.RenderApi.OpenGL.csproj" />
|
||||
<ProjectReference Include="..\UIX.RenderApi\UIX.RenderApi.csproj" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />
|
||||
|
||||
Reference in New Issue
Block a user