如何链接C和Opengl(C ++)? [英] How Do I Link C And Opengl(C++)?

查看:134
本文介绍了如何链接C和Opengl(C ++)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作的C代码显示了一些坐标。

现在我希望通过使用我的坐标显示可视化。

我打算使用opengl,我尝试了几次。

但我无法解决。

如何链接C和opengl?

请完全回复.....

谢谢

解决方案

您可以在网上找到教程,例如:构建自己的C应用程序 [ ^ ]。


有两个opengl版本: 原始OpenGL [ ^ ]和 freeglut库 [ ^ ]。

后者实际上更加广泛使用,当然与原始OpenGL兼容。

从这两个版本中你可以下载开发套件,对于freeglut,还有一些其他资源如这个 [ ^ ],您可以在其中找到完整的预编译开发包和样本。

在OpenGL网站在此页面上 [ ^ ]在教程部分,您将找到许多资源来学习如何使用OpenGl。

I made C code which show some coordinates.
And now i hope to show visualization by using my coordinates.
I plan to use opengl and i tried some times.
But i can't solve it.
how do i link C and opengl??
please reply exactly.....
thank you

解决方案

You may find tutorials on the web, see, for instance: "Building your own C application"[^].


There are two opengl versions around: The original OpenGL[^] and the freeglut library[^].
The latter is more widly used actually, and of course is compatible with the original OpenGL.
From both version you can download development kits, for the freeglut there are also some other resources as this[^] where you can found complete precompiled development packages and samples.
On the OpenGL site on this page[^] at the tutorials section you'll find many resources to learn how to use OpenGl.


这篇关于如何链接C和Opengl(C ++)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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