使用OpenGL与Python [英] Using OpenGL with Python

查看:313
本文介绍了使用OpenGL与Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我只知道如何使用Python,但是我也知道如何在3d中建模。我听说过OpenGL,我真的想学习如何使用,因为它似乎非常有用(我想用它创建简单的游戏...)。我发现PyOpenGL,Op​​enGL的Python绑定,但是我找不到任何真实的文档,所以唯一的选择是学习使用C ++编写的代码示例和教程。但是,正如我所说,我只知道如何使用Python。我该怎么办?

So, I only know how to use Python, but I also know how to model in 3d. I've heard of OpenGL and I really want to learn how to use, because it seems very useful (I want to create simple games with it...). I found PyOpenGL, Python bindings for OpenGL, but I couldn't find any "real" documentation, so the only option is to study code examples and tutorials written in C++ or something. But, as I said, I only know how to use Python. What can I do about that?

推荐答案

你应该继续阅读 OpenGL教程

这是一个 pyopengl demo ;其他样品已通过此处

Here's a pyopengl demo; other samples are over here.

此外,您还可以使用 pygame pyopengl ;一个例子是 here

Also, you can use pygame together with pyopengl; an example is here.

这篇关于使用OpenGL与Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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