java 如何在 LWJGL 中渲染 3d 立方体?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11840203/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to render a 3d cube in LWJGL?
提问by thegoodone
I can`t find a good tutorial on the web, about rendering a 3d cube in the Lightweight Java Game Library! I have been learning LWJGL for some time now. I know how to draw 2d objects. Could Somebody Help me?
我在网上找不到关于在轻量级 Java 游戏库中渲染 3d 立方体的好的教程!我已经学习 LWJGL 有一段时间了。我知道如何绘制二维对象。有人可以帮助我吗?
回答by halex
Hereis a lesson of a tutorial for "normal" OpenGL but in the bottom of the site you can find code for the tutorial lesson in plenty of different languages and libraries, including Java with LWJGL.
这是“普通”OpenGL 教程的一课,但在站点底部,您可以找到大量不同语言和库的教程课代码,包括 Java 和 LWJGL。
To get the java code out of this jar you can open it with e.g. 7-zip and find the .java file in the folder named Lesson05.
要从这个 jar 中获取 java 代码,您可以使用例如 7-zip 打开它并在名为 Lesson05 的文件夹中找到 .java 文件。