简体   繁体   English

使用.NET和Visual Studio 2017开发Android OpenGL ES App

[英]Developing Android OpenGL ES App with .NET and Visual Studio 2017

As it is possible to develop Android apps in .NET (with Xamarin), is there also a way to make an OpenGL canvas and OpenGL calls? 由于可以在.NET中开发Android应用程序(使用Xamarin),是否还有一种方法可以制作OpenGL画布和OpenGL调用?

I didnt find anything regarding this in the documentation here: https://docs.microsoft.com/en-us/xamarin/android/ 我在这里的文档中没有找到任何相关内容: https//docs.microsoft.com/en-us/xamarin/android/

When using Xamarin.Forms, it seems you are looking for the OpenGLView : https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.openglview?view=xamarin-forms 使用Xamarin.Forms时,您似乎正在寻找OpenGLViewhttpsOpenGLView OpenGLView = OpenGLView

A View that displays OpenGL content. 显示OpenGL内容的视图。

Currently it only supports Android and iOS. 目前它只支持Android和iOS。

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

Otherwise, as mentioned in the comments, you can just use the native Android frameworks for OpenGL . 否则,如评论中所述,您可以使用OpenGL的原生Android框架。 You will need something like this: https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/Graphics/CubeRenderer.cs 你需要这样的东西: https//github.com/xamarin/monodroid-samples/blob/master/ApiDemo/Graphics/CubeRenderer.cs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM