gpt4 book ai didi

android - 使用 .NET 和 Visual Studio 2017 开发 Android OpenGL ES 应用程序

转载 作者:太空狗 更新时间:2023-10-29 13:03:38 24 4
gpt4 key购买 nike

由于可以在 .NET(使用 Xamarin)中开发 Android 应用程序,是否还有一种方法可以创建 OpenGL Canvas 和 OpenGL 调用?

我没有在此处的文档中找到与此相关的任何内容: https://learn.microsoft.com/en-us/xamarin/android/

最佳答案

使用 Xamarin.Forms 时,您似乎正在寻找 OpenGLView:https://learn.microsoft.com/en-us/dotnet/api/xamarin.forms.openglview?view=xamarin-forms

A View that displays OpenGL content.

目前仅支持Android和iOS。

https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/controls/views#openglview

否则,如评论中所述,您可以只使用原生 Android 框架来实现 OpenGL。您将需要这样的东西:https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/Graphics/CubeRenderer.cs

关于android - 使用 .NET 和 Visual Studio 2017 开发 Android OpenGL ES 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51906558/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com