Skip to content

verygoodgraphics/vgg_qt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vgg_qt

A Qt VGG Container library.

Overview

erDiagram
    QtVggExample 1--1 VggContainer: use
    VggContainer 1--1 VggRuntime: use
Loading
Item Description
QtVggExample The application using Qt Vgg Container
VggContainer Qt Vgg Container library
VggRuntime C++ Vgg Runtime library

Getting Started

  1. Build VggContainer.
  2. Build Counter example.

    Note: Change the vgg file path if needed.

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

Usage

CMake Project

  1. Add VggContainer library.
add_subdirectory(<path/to/VggContainer>)
target_link_libraries(MyApp PRIVATE
    VggContainer
)
target_include_directories(MyApp PRIVATE
  external
)
  1. Use QVggOpenGLWidget.
#include "VggContainer/QVggOpenGLWidget.hpp"

auto vggFilePath = "<path/to/vggFile>";
QVggOpenGLWidget vggContainer;
vggContainer.show();
vggContainer.load(vggFilePath);

Example

You can run our Counter example in this repository.

Releases

No releases published

Packages

No packages published