https://github.com/harfang3d/tutorials-cpp-hg2
Tutorials for Harfang C++
https://github.com/harfang3d/tutorials-cpp-hg2
Last synced: about 1 month ago
JSON representation
Tutorials for Harfang C++
- Host: GitHub
- URL: https://github.com/harfang3d/tutorials-cpp-hg2
- Owner: harfang3d
- Created: 2021-10-19T14:57:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T15:13:28.000Z (over 1 year ago)
- Last Synced: 2023-08-14T18:05:38.329Z (over 1 year ago)
- Language: Shell
- Size: 52.7 MB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HARFANG® 3.2.5+ Tutorials
These **tutorials** demonstrate the usage of the HARFANG 3.0 C++ API.
To run the tutorials:
1. Download or clone this repository to your computer _(eg. in `d:/hg_cpp_tutorials`)_.
2. Download the _C++ SDK_ for your platform from [here](https://harfang3d.com/releases).
3. Download _assetc_ for your platform from [here](https://harfang3d.com/releases) to compile the tutorial resources.**If you want to know more about HARFANG**, please visit the [official website](https://www.harfang3d.com).
## Build instructions
We will use CMake build system to compile both the C++ source code and resources of the tutorials.First create a build directory.
```
mkdir build
cd build
```We will now invoke CMake configuration.
```
cmake .. \
-DHG_CPPSDK_PATH= \
-DHG_ASSETC_PATH= \
-DCMAKE_INSTALL_PREFIX=
```
`CMAKE_INSTALL_PREFIX` is the directory where the tutorial executables, their dependencies and compiled resources will be copied.You can also use CMake GUI to configure your project.
The tutorials can now be built using:
```
cmake --build . --target install
```
Under Windows, when using MSVC, you can also pass the configuration
```
cmake --build . --config Release --target install
```## Screenshots
* Basic window
[](basic_loop.cpp)* Mouse flight
[](game_mouse_flight.cpp)* Physics pool of objects
[](physics_pool_of_objects.cpp)* Scene instances
[](scene_instances.cpp)* Scene with many nodes
[](scene_many_nodes.cpp)