如何在 LWJGL 中渲染 3d 立方体? [英] How to render a 3d cube in LWJGL?

查看:33
本文介绍了如何在 LWJGL 中渲染 3d 立方体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上找不到关于在轻量级 Java 游戏库中渲染 3d 立方体的好的教程!我已经学习 LWJGL 有一段时间了.我知道如何绘制二维对象.有人可以帮助我吗?

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?

推荐答案

这里普通"OpenGL 教程,但在网站底部,您可以找到使用多种不同语言和库(包括 Java 和 LWJGL)的教程课程代码.

Here is 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.

要从这个 jar 中获取 java 代码,您可以使用例如打开它7-zip 并在名为 Lesson05 的文件夹中找到 .java 文件.

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.

这篇关于如何在 LWJGL 中渲染 3d 立方体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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