assimp_sys/
version.rs

1use std::os::raw::{c_char, c_uint};
2
3extern {
4    pub fn aiGetLegalString() -> *const c_char;
5    pub fn aiGetVersionMinor() -> c_uint;
6    pub fn aiGetVersionMajor() -> c_uint;
7    pub fn aiGetVersionRevision() -> c_uint;
8    pub fn aiGetCompileFlags() -> AiCompileFlags;
9}
10
11bitflags! {
12    #[repr(C)]
13    pub struct AiCompileFlags: c_uint {
14        const ASSIMP_CFLAGS_SHARED = 0x1;
15        const ASSIMP_CFLAGS_STLPORT = 0x2;
16        const ASSIMP_CFLAGS_DEBUG = 0x4;
17        const ASSIMP_CFLAGS_NOBOOST = 0x8;
18        const ASSIMP_CFLAGS_SINGLETHREADED = 0x10;
19    }
20}