简体   繁体   English

Linux相当于直接绘图

[英]Linux equivalent to Direct draw

As ac# programmer, I'm used to Microsoft, however, I'm really liking the linux side of things and Mono opens up that world to me a lot better (imo). 作为ac#程序员,我已经习惯了Microsoft,但是我真的很喜欢Linux的一面,Mono向我打开了一个更好的世界(imo)。

I have an app that may need some direct draw support in order to display active video, and I'm curious as to what the equivalent (and even better, what support does Mono provide) in linux? 我有一个可能需要直接绘图支持才能显示活动视频的应用程序,并且我对Linux中的等效功能(甚至更好,Mono提供了哪些支持)感到好奇?

OpenGL在Linux / BSD和Mac(以及Windows)中等效于DirectDraw。

The short answer is no, there is no DirectX support/emulation planned for the Mono framework, or for Linux in general. 简短的答案是“否”,没有针对Mono框架或针对Linux计划任何DirectX支持/仿真。 The closest you can get at the moment is to use an emulation layer like Wine or Cedega to run a windows app within Linux... which is not necessarily a perfect solution in many cases. 目前,您可以获得的最接近的结果是使用Wine或Cedega之类的仿真层在Linux中运行Windows应用程序……在许多情况下,这不一定是完美的解决方案。

The alternative is to use a cross-platform library that will function the same on multiple platforms. 替代方法是使用跨平台的库,该库在多个平台上的功能相同。 The C# SDL project will apparently run on Mono, which should give you a consistent interface for graphical operations. C#SDL项目显然将在Mono上运行,这将为您提供图形操作的一致界面。 It's based on libsdl which is fairly mature, and there are plenty of examples out there. 它基于相当成熟的libsdl ,并且有很多示例。

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

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