Libgdx-支持OpenGL 4+ [英] Libgdx - Support for OpenGL 4+

查看:208
本文介绍了Libgdx-支持OpenGL 4+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以仅将Libgdx用于桌面开发并从Libgdx抽象访问Opengl的较新版本?我的意思是,如果您要开发移动应用程序,则必须使用一些Opengl ES版本,该版本不支持很多经典Opengl所支持的功能(例如,绘制线框等). 可以说,这些天我不想使用Opengl ES,而要使用普通的Opengl版本4+,并将其功能完全用于OA桌面开发. Libgdx是否对此提供支持?

Is it possible to use Libgdx for a desktop development only and access newer versions of Opengl from Libgdx abstraction? I mean, if you want to develop mobile apps you will have to use a some verison of Opengl ES, which does not support lot of things like classic Opengl does (e.g. drawing wireframes, etc.). Lets say I don't want to use Opengl ES but normal Opengl, version 4+ in these days, and fully use its features for oa desktop development. Does Libgdx have support for this?

推荐答案

在桌面上,libGDX构建在 LWJGL的顶部,在此答案时,它最多支持OpenGL 4.5.

On the desktop, libGDX is built on top of LWJGL, which at of the time of this answer supports up to OpenGL version 4.5.

因此,如果您在桌面上使用libGDX,则可以直接访问LWJGL调用.不过,这将破坏您的移动或Web部署构建.

So if you're using libGDX on the desktop, then you can simply access the LWJGL calls directly. This will break your build for mobile or web deployment though.

这篇关于Libgdx-支持OpenGL 4+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆