Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在哪里可以找到关于 OpenGL 中鼠标移动和多边形旋转的示例代码?我正在使用 Java,因此首选 Java 中的示例代码。
您可能会发现这很有用:
http://pepijn.fab4.be/software/nehe-java-ports/
如果您想使用 JOGL java 库,可以在这里找到非常有用的示例代码。
JOGL 是相当直截了当的前言,易于掌握。请注意,面向对象的性质可能会使 C/C++ 中的 OpenGL 未来/更高级的工作更难掌握。
下面 .zip 中的MainWindow.java是您正在寻找的示例。代码来自上面的链接。 代码.zip