简体   繁体   English

带有JOGL和/或LWJGL的Java小程序-每个操作系统都有本机

[英]Java applet with JOGL and/or LWJGL - with natives for every OS

I am currently developing an applet for some OpenGL ES stuff but I am absolutely unsure how I can handle the natives that comes with JOGL and/or LWJGL. 我目前正在为某些OpenGL ES东西开发一个applet,但是我绝对不确定如何处理JOGL和/或LWJGL随附的本机。

LWJGL has a nice applet loader which can load jars (containing the natives) over the internet. LWJGL有一个不错的applet加载器,可以通过Internet加载jar(包含本地对象)。 The advantage of LWJGL is, that it has only on native pack for each platform and not one for 32bit and 64bit. LWJGL的优点是,对于每个平台,它仅在本机包中,而对于32位和64位,则没有一个。 Disadvantage is, that LWJGL doesn't support OpenGL ES, it just supports OpenGL (correct me if I am wrong). 缺点是LWJGL不支持OpenGL ES,它仅支持OpenGL(如果我错了,请纠正我)。

So I plan to use the applet loader from LWJGL but implementing the OpenGL ES with JOGL. 因此,我计划使用LWJGL的applet loader,但要用JOGL实现OpenGL ES。 The big disadvantage is here, that I have no idea how I can change the natives for 32bit and/or 64bit. 最大的缺点是,我不知道如何更改32位和/或64位本机。 The applet loader just takes one jar for the natives and the natives have the same name, so I can't create a bundle which has 32bit ans 64bit support. applet加载程序只为本地人使用一个jar,而本地人具有相同的名称,因此我无法创建具有32位和64位支持的包。

Trying to run the 32bit natives on my 64bit Ubuntu doesn't work, it crashes with the error of a wrong header in the files... so wrong version, I guess. 尝试在我的64位Ubuntu上运行32位本机不起作用,它崩溃并出现文件头错误的错误……我猜是错误的版本。

I have no idea how I can solve this problem. 我不知道如何解决这个问题。

您可以在http://jogamp.org上找到一个带有JOGL 2简短说明的示例: http : //jogamp.org/jogl-demos/www/applettest-jnlp.html (如果您愿意,本地lib部署基本上是自动处理的使用提供的jnlp)

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

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