P
P
ProstoUserName2020-09-17 17:08:04
GTK+
ProstoUserName, 2020-09-17 17:08:04

Which is better openGL or GTK+?

What will be better for writing a graphical environment? OpenGL or GTK+?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Mirilaczvili, 2020-09-17
@2ord

GTK is a graphical toolkit for building typical windowed applications. OpenGL - for building graphic
2D/3D scenes (animations, etc.).

A
aldexnotproger, 2020-09-17
@aldexnotproger

GTK+. For linux, definitely GTK+. Good documentation, a set of useful widgets, and there is the Vala language, created by GNOME for GUI development.

E
Eugene, 2020-10-15
@jenya92

I'm certainly not an expert, but still they are a little for different tasks. If you just need to create a window for the program - then gtk. openGL is more for graphics work. So it all depends on the specific goals.

T
Tynkute, 2020-11-13
@Tynkute

To write a graphical environment, you can use:

  • GTK
  • QT
  • SDL
  • Third-party libraries (of which there are many on github)

OpenGL , however, is not quite suitable for this.
OpenGL (Open Graphics Library) is a specification that defines a platform-independent (programming language-independent) programming interface for writing applications that use two-dimensional and three-dimensional computer graphics.

spoiler
Рекомендую начать с GTK. Как минимум из-за его кроссплатформенности и легкости освоения(относительно QT).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question