assimp_sys/
importerdesc.rs

1use std::os::raw::{c_char, c_uint};
2
3bitflags! {
4    #[repr(C)]
5    pub struct AiImporterFlags: c_uint {
6        const AIIMPORTERFLAG_SUPPORT_TEXT_FLAVOUR = 0x1;
7        const AIIMPORTERFLAG_SUPPORT_BINARY_FLAVOUR = 0x2;
8        const AIIMPORTERFLAG_SUPPORT_COMPRESSED_FLAVOUR = 0x4;
9        const AIIMPORTERFLAG_LIMITED_SUPPORT = 0x8;
10        const AIIMPORTERFLAG_EXPERIMENTAL = 0x10;
11    }
12}
13
14#[repr(C)]
15pub struct AiImporterDesc {
16    pub name: *const c_char,
17    pub author: *const c_char,
18    pub maintainer: *const c_char,
19    pub comments: *const c_char,
20    pub flags: AiImporterFlags,
21    pub min_major: c_uint,
22    pub min_minor: c_uint,
23    pub max_major: c_uint,
24    pub max_minor: c_uint,
25    pub file_extensions: *const c_char,
26}
27
28extern {
29    pub fn aiGetImporterDesc(
30        extension: *const c_char) -> *const AiImporterDesc;
31}