Skip to content

clibequilibrium/cgltf-CSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgltf-CSharp

C# bindings for https://github.com/jkuhlmann/cgltf with native dynamic link libraries based on imgui-cs.

How to use

Get it from NuGet

dotnet add package cgltf-CSharp --version 1.13.0.1

From source

Installing C2CS

C2CS is distributed as a NuGet tool. To get started, the .NET 7 software development kit (SDK) is required.

Latest release of C2CS

dotnet tool install bottlenoselabs.c2cs.tool --global 
  1. Download and install .NET 7.
  2. Fork the repository using GitHub or clone the repository manually with submodules: git clone --recurse-submodules https://github.com/clibequilibrium/cgltf-CSharp.
  3. Build the native library by running library.sh. To execute .sh scripts on Windows, use Git Bash which can be installed with Git itself: https://git-scm.com/download/win. The library.sh script requires that CMake is installed and in your path.
  4. Locate the sample of the C# project: ./src/cs/production/samples/test/test.csproj.

Developers: Documentation

For more information on how C# bindings work, see C2CS, the tool that generates the bindings for cgltf and other C libraries.

To learn how to use cgltf, check out the official readme.

License

cgltf-CSharp is licensed under the MIT License (MIT) - see the LICENSE file for details.

cgltf itself is licensed under MIT license (MIT) - see https://github.com/jkuhlmann/cgltf/blob/master/LICENSE for more details.