Commits on Source (10)
-
It allows the QtGL example to be built with the following commandline: unidan@DESKTOP-A5FN7E8:~/vlc/doc/libvlc/QtGL$ env \ PKG_CONFIG_SYSROOT_DIR=/ \ PKG_CONFIG_LIBDIR=$(realpath ${CONTRIB_PREFIX}/lib/pkgconfig/) \ PKG_CONFIG_PATH=$(realpath ${INSTALL_PREFIX}/lib/pkgconfig/) \ ../../../build-win64/contrib/x86_64-w64-mingw32/lib/qt5/bin/qmake where the path for ${INSTALL_PREFIX} is made of the --prefix value forwarded to the configure script, where files are copied after `$MAKE install`.
1c1739de -
Similar to the one in the QtGl sample.
930b5ef4 -
QT_STATICPLUGIN is only used to export plugins, it has no impact on importing plugins (see qplugin.h).
1e09fce3 -
On Windows if I don't set this I get the following error: QOpenGLShader::compile(Fragment): ERROR: 0:3: '' : No precision specified for (float) ERROR: 0:8: ';' : syntax error
1d80e395 -
std::mutex is not available on some platforms (mingw64 with gcc for example).
fd58e148 -
ff816e40
-
glActiveTexture doesn't exist in opengl32.dll on Windows. Co-Authored-By:
Alexandre Janniaux <ajanni@videolabs.io>
4b60c03d -
QWindowsIntegrationPlugin is supposed to be linked against only when the example is being compiled for Windows platform.
ce4e4085 -
QWindowsIntegrationPlugin is supposed to be linked against only when the example is being compiled for Windows platform.
f3f32481 -
Precision is available but no-op on GLSL 130 (see [3], section 4.5.2) and mandatory for OpenGL ES. It was first reserved on GLSL 120 and didn't exist in GLSL <= 110 (= OpenGL 2.0). Since it's a no-op, the easiest solution is to never use it for OpenGL code. This description is also copied into the sample to explain to the users that they might have difference in behaviour depending on whether they are using OpenGL or OpenGL ES2, and depending on the version of OpenGL used. The precision qualifier was added because Qt was linked from the contribs, which was linked with -opengl angle and thus was actually using OpenGL ES2, which needs the precision qualifier. Resources used: [1]: https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.10.pdf [2]: https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.20.pdf [3]: https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.30.pdf
febdeca0
Showing
- contrib/src/qt/rules.mak 5 additions, 0 deletionscontrib/src/qt/rules.mak
- doc/libvlc/QtGL/main.cpp 2 additions, 2 deletionsdoc/libvlc/QtGL/main.cpp
- doc/libvlc/QtGL/qtvlcwidget.cpp 24 additions, 12 deletionsdoc/libvlc/QtGL/qtvlcwidget.cpp
- doc/libvlc/QtPlayer/main.cpp 7 additions, 0 deletionsdoc/libvlc/QtPlayer/main.cpp