A Qt VGG Container library.
erDiagram
QtVggExample 1--1 VggContainer: use
VggContainer 1--1 VggRuntime: use
Item | Description |
---|---|
QtVggExample | The application using Qt Vgg Container |
VggContainer | Qt Vgg Container library |
VggRuntime | C++ Vgg Runtime library |
cd /path/to/repo
# Remove comment if you're building with clang
# export CC=clang
# export CXX=clang++
mkdir build
cd build
# macOS
cmake .. -DCMAKE_PREFIX_PATH=~/Qt/6.6.1/macos
cmake --build . --parallel
# windows
cmake .. -DCMAKE_PREFIX_PATH=C:\Qt\6.6.3\msvc2019_64 -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel --config Release
- Add
VggContainer
library.
add_subdirectory(<path/to/VggContainer>)
target_link_libraries(MyApp PRIVATE
VggContainer
)
target_include_directories(MyApp PRIVATE
external
)
- Use
QVggOpenGLWidget
.
#include "VggContainer/QVggOpenGLWidget.hpp"
auto vggFilePath = "<path/to/vggFile>";
QVggOpenGLWidget vggContainer;
vggContainer.show();
vggContainer.load(vggFilePath);
You can run our Counter example in this repository.