没有OpenGL的Linux基本图形编程 [英] Linux basic graphics programming without OpenGL
问题描述
对于学习者来说,在 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屋!