{"id":26406451,"url":"https://github.com/harfang3d/tutorials-cpp-hg2","last_synced_at":"2025-03-17T17:19:54.300Z","repository":{"id":38314612,"uuid":"418971748","full_name":"harfang3d/tutorials-cpp-hg2","owner":"harfang3d","description":"Tutorials for Harfang C++","archived":false,"fork":false,"pushed_at":"2023-08-14T15:13:28.000Z","size":55271,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-08-14T18:05:38.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harfang3d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-19T14:57:54.000Z","updated_at":"2023-08-14T18:05:38.329Z","dependencies_parsed_at":"2023-01-28T13:03:11.544Z","dependency_job_id":null,"html_url":"https://github.com/harfang3d/tutorials-cpp-hg2","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfang3d%2Ftutorials-cpp-hg2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfang3d%2Ftutorials-cpp-hg2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfang3d%2Ftutorials-cpp-hg2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harfang3d%2Ftutorials-cpp-hg2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harfang3d","download_url":"https://codeload.github.com/harfang3d/tutorials-cpp-hg2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075626,"owners_count":20393980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-17T17:19:53.697Z","updated_at":"2025-03-17T17:19:54.282Z","avatar_url":"https://github.com/harfang3d.png","language":"Shell","readme":"# HARFANG® 3.2.5+ Tutorials\n\nThese **tutorials** demonstrate the usage of the HARFANG 3.0 C++ API.\n\nTo run the tutorials:\n\n1. Download or clone this repository to your computer _(eg. in `d:/hg_cpp_tutorials`)_.\n2. Download the _C++ SDK_ for your platform from [here](https://harfang3d.com/releases).\n3. Download _assetc_ for your platform from [here](https://harfang3d.com/releases) to compile the tutorial resources.\n\n**If you want to know more about HARFANG**, please visit the [official website](https://www.harfang3d.com).\n\n## Build instructions\nWe will use CMake build system to compile both the C++ source code and resources of the tutorials.\n\nFirst create a build directory.\n```\nmkdir build\ncd build\n```\n\nWe will now invoke CMake configuration.\n```\ncmake .. \\\n    -DHG_CPPSDK_PATH=\u003cthe directory where the Harfang C++ SDK was installed\u003e \\\n    -DHG_ASSETC_PATH=\u003cthe directory where the assetc was installed\u003e \\\n    -DCMAKE_INSTALL_PREFIX=\u003csee below\u003e\n```\n`CMAKE_INSTALL_PREFIX` is the directory where the tutorial executables, their dependencies and compiled resources will be copied.\n\nYou can also use CMake GUI to configure your project.\n\nThe tutorials can now be built using:\n```\ncmake --build . --target install\n```\nUnder Windows, when using MSVC, you can also pass the configuration\n```\ncmake --build . --config Release --target install\n```\n\n## Screenshots\n* Basic window\n[![Basic window](screenshots/basic_loop.png)](basic_loop.cpp)\n\n* Mouse flight\n[![Basic window](screenshots/game_mouse_flight.png)](game_mouse_flight.cpp)\n\n* Physics pool of objects\n[![Physics pool](screenshots/physics_pool_of_objects.png)](physics_pool_of_objects.cpp)\n\n* Scene instances\n[![Instances](screenshots/scene_instances.png)](scene_instances.cpp)\n\n* Scene with many nodes\n[![Many object nodes](screenshots/scene_many_nodes.png)](scene_many_nodes.cpp)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharfang3d%2Ftutorials-cpp-hg2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharfang3d%2Ftutorials-cpp-hg2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharfang3d%2Ftutorials-cpp-hg2/lists"}