请告诉我如何使用DDA线算法在opengl中绘制2d和3d条形图.... [英] please tell how to draw 2d and 3d bar charts in opengl using DDA line algorithm....
本文介绍了请告诉我如何使用DDA线算法在opengl中绘制2d和3d条形图....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我如何使用DDA线算法在opengl中绘制2d和3d条形图....
please tell how to draw 2d and 3d bar charts in opengl using DDA line algorithm....
推荐答案
在opengl中你必须从头开始绘制所有内容。首先将所有绘图内容划分为线条和/或纹理。
我发现了一个很好的Java教程,但是OpenGL代码看起来应该是similer。这就是为什么它被称为开放GL。
点击: JOGL(Java OpenGL)教程
in opengl you must draw everything from the scratch. Begin by dividing all your drawing stuff into lines and/or textures.
I found a nice tutorial which is in Java, but the OpenGL code should look similer. Thats why it is called "Open" GL.
click: JOGL (Java OpenGL) Tutorial
这篇关于请告诉我如何使用DDA线算法在opengl中绘制2d和3d条形图....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文