Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikskuh/zig-assimp
Open Asset Importer Library built with Zig
https://github.com/ikskuh/zig-assimp
3d-formats assimp assimp-port zig zig-package ziglang
Last synced: 4 months ago
JSON representation
Open Asset Importer Library built with Zig
- Host: GitHub
- URL: https://github.com/ikskuh/zig-assimp
- Owner: ikskuh
- License: bsd-3-clause
- Created: 2021-09-03T08:25:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T14:36:40.000Z (12 months ago)
- Last Synced: 2024-05-17T11:43:11.492Z (9 months ago)
- Topics: 3d-formats, assimp, assimp-port, zig, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 74.2 KB
- Stars: 15
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAssetImporter Library Binding for Zig
This repo is a build sdk for [Assimp](https://github.com/assimp/assimp) to be used with the Zig build system:
```zig
const std = @import("std");// Import the SDK
const Assimp = @import("Sdk.zig");pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();const exe = b.addExecutable("static-example", null);
exe.setBuildMode(mode);
exe.addCSourceFile("src/example.cpp", &[_][]const u8{"-std=c++17"});
exe.linkLibC();
exe.linkLibCpp();
exe.install();
// Create a new instance
var sdk = Assimp.init(b);// And link Assimp statically to our exe and enable a default set of
// formats.
sdk.addTo(exe, .static, Assimp.FormatSet.default);
}
```