Skip to content

Example programs that test and illustrate how to use the VSG and optional add-on libraries

License

Notifications You must be signed in to change notification settings

rolandhill/vsgExamples

This branch is 78 commits behind vsg-dev/vsgExamples:master.

Folders and files

NameName
Last commit message
Last commit date
May 23, 2023
Nov 28, 2024
Dec 17, 2024
Dec 12, 2024
Jan 6, 2021
Oct 4, 2023
Dec 11, 2024
Mar 16, 2024
Nov 6, 2018
Aug 12, 2023

Repository files navigation

vsgExamples

Example programs that test and illustrate how to use the VulkanSceneGraph and optional add-on libraries. The example programs are grouped according to the type of features they illustrate and their dependencies.

Quick Guide to Building the vsgExamples

Prerequisites:

  • C++17 compliant compiler i.e.. g++ 7.3 or later, Clang 6.0 or later, Visual Studio 2017 or later.
  • Vulkan 1.1 or later.
  • CMake 3.7 or later.
  • VulkanSceneGraph use master
  • vsgXchange optional - used for 3d model and image loaders
  • vsgImGui optional - used for in window GUI examples

The above dependency versions are known to work so they've been set as the current minimum, it may be possible to build against older versions. If you find success with older versions let us know and we can update the version info.

Command line build instructions:

To build and install in source, with all dependencies installed in standard system directories:

git clone https://github.com/vsg-dev/vsgExamples.git
cd vsgExamples
cmake .
make -j 8

Full details on how to build the vsgExamples can be found in the INSTALL.md file.

Running examples

After you have built the examples you should set your binary search path to the vsgExamples/bin directory, and the VSG_FILE_PATH env vars.

export PATH="$PATH:/path/to/vsgExamples/bin"
export VSG_FILE_PATH=/path/to/vsgExamples/data

Then run examples:

vsgmaths # run simple tests of vsg/maths functionality
vsgdraw # run the vsgdraw example (a port of VulkanTutorial)

About

Example programs that test and illustrate how to use the VSG and optional add-on libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • GLSL 78.4%
  • C++ 19.5%
  • CMake 2.1%