Silk.Net for Android Exception
See original GitHub issueCode:
using LiteEngine;
using Silk.NET.Windowing;
using Silk.NET.Windowing.Sdl.Android;
namespace AndroidLauncher;
[Activity(Label = "@string/app_name", MainLauncher = true)]
public class MainActivity : SilkActivity
{
private IView view;
protected override void OnRun()
{
var options = ViewOptions.Default;
options.API = new GraphicsAPI(ContextAPI.OpenGLES, ContextProfile.Compatability, ContextFlags.Default, new APIVersion(3, 0));
view = Silk.NET.Windowing.Window.GetView(options);
view.Load += Init;
view.Update += Update;
view.Render += Render;
view.Run();
Fini();
}
private void Update(double time)
{
//Engine.Instance.Update((float)time);
}
private void Render(double time)
{
//Engine.Instance.Render();
}
private void Init()
{
// Engine.Instance.Init();
}
private void Fini()
{
//Engine.Instance.Fini();
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" >
</application>
<uses-permission android:name="android.permission.BLUETOOTH"
android:maxSdkVersion="30" />
</manifest>
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Troubleshooting - Silk.NET
Create, a PlatformNotSupportedException is thrown with a message indicating that the windowing system couldn't find a windowing platform.
Read more >TriangleDroid test app crashes while trying to get GL ...
Encountering the following exception while trying to run the TriangleDroid app within Labs either on an emulator (targeting API 28 / Android ......
Read more >net6.0-android: Java.Interop conflict · Issue #681
Summary Referencing Silk.NET.Windowing 2.10.0. Compiling result in following error: 1>CSC : error CS1705: Assembly 'Silk.NET.Windowing.
Read more >Common exceptions
PlatformNotSupportedException : Couldn't find a suitable windowing platform. ... Silk.NET should do a good job of copying the appropriate native libraries ...
Read more >Silk.NET.OpenGL.Legacy.Extensions.WIN 2.1.0
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At a guess, your device does not support OpenGLES 3.0.
I’m going to close this issue given this isn’t a Silk.NET bug. For future questions please use Discussions or our Discord in the first instance and if we find there’s a Silk.NET bug an issue can be created then.