3 ms·
> The original reply said one dabbled C++ via "creative coding, graphics programming, etc.", which definitely needs dependencies from the beginning. Can you dra
by simplotek 4y ago
> The original reply said one dabbled C++ via "creative coding, graphics programming, etc.", which definitely needs dependencies from the beginning. Can you draw a nicely shaded triangle only with the C++ standard library?
Taken straight from Qt's page on OpenGL support:
find_package(Qt6 REQUIRED COMPONENTS OpenGL)
target_link_libraries(mytarget PRIVATE Qt6::OpenGL)
https://doc.qt.io/qt-6/qtopengl-index.html https://doc.qt.io/qt-6/qtopengl-index.html
Do you feel this is too hard to setup?
- lifthrasiir 4y agoThat's because Qt 6 wholeheartedly converted to CMake for you. (At least it is better than qmake.) In order to support this Qt has this large battery of CMake files [1]. Qt is of course a clear outlier, but you can't expect the same level of support from every other library you want. My points about "anything exotic" still stand. [1] https://github.com/qt/qtbase/tree/dev/cmake https://github.com/qt/qtbase/tree/dev/cmake
- simplotek 4y ago> That's because Qt 6 wholeheartedly converted to CMake for you. It's not Qt6. The same goes for Qt5, which has been around for what, close to a decade? And what's your point, exactly? That things are hard if you purposedly ignore all the examples that prove that things are patently easy and trivial? Because it seems evident to me that if you want to quickly setup a C++ project to try out stuff, a CMake project with single-digit lines of code that get you a window with an OpenGL context going is right what you'd be looking for. But instead you complain that the choice of build system and framework made things easy? And that's why things are not hard What exactly do you think is your point?