没有OpenGL的Linux基本图形编程 [英] Linux basic graphics programming without OpenGL

查看:140
本文介绍了没有OpenGL的Linux基本图形编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于学习者而言,以C/C ++(2D和3D)启动基本图形编程的最佳选择是什么?我想尝试本书中给出的内容( 3D数学入门). 显然我不想使用OpenGL.

What are the good choices to start basic graphics programming in C/C++ (both 2D and 3D) for a learner? I want to try out things given in the book (3D math primer). Obviously I don't want to use OpenGL.

我有一台装有Linux(Debian)的机器.首先,我在Linux上有哪些选择? QT或GTK或其他?

I have a machine that has Linux (Debian). What are my choices on Linux to start with? QT or GTK or something else?

我不想使用OpenGL,因为它为我完成了大多数有趣的工作.例如旋转,投影等.我想学习那些东西.

I don't want to use OpenGL because it does most of the interesting work for me. Like, rotation, projection etc. I want to learn those things.

推荐答案

使用OpenGL.您可以使用旧版OpenGL并保留转换矩阵作为标识,并在调用glVertex *之前进行自己的旋转投影等,也可以将现代OpenGL与着色器一起使用,而在这些着色器中,您必须自己在顶点着色器中实现这些功能.

Use OpenGL. You can either use legacy OpenGL and leave the transformation matrices as identity, and do your own rotation projection etc. before calling glVertex*, or use modern OpenGL with shaders, where you'll have to implement those features yourself in the vertex shader.

这篇关于没有OpenGL的Linux基本图形编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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