jkvargas / russimp-sys

Assimp raw bindings
Other
2 stars 22 forks source link

#Include <assimp/cexport.h> #36

Closed jl-beast closed 9 months ago

jl-beast commented 1 year ago

I was recently writing up a project that uses russimp and by proxy russimp-sys. I noticed that in wrapper.h, cexport.h is not included. I was hoping, even though it would be unsafe, to use bindings from the cexport.h wrapper to help export some files that I load in after doing some work on them.

I was hoping to ask about the reasoning, would we be able to include?

jkvargas commented 10 months ago

hey @jl-beast, it is actually included https://github.com/jkvargas/russimp-sys/blob/4ac668ca1063fc903c8e11fa7eb0097892206180/wrapper.h#L4

is that what you wanted?

jl-beast commented 10 months ago

It seems to be. My issue that I am having is that I am unable to find in russimp-sys.

I want to use aiExportScene even if it is unsafe.

jkvargas commented 10 months ago

hey man, should be possible I pulled russimp-sys 2.0.1 and then, using jetbrains rustover I was able to import it.

use russimp_sys::aiExportScene;

russimp does not handle exporting. if you got some free time would be cool to add the feature to it. Good luck, man.

jl-beast commented 9 months ago

Seems like I had an older version. (feel kind of stupid that I didn't try and fix this first, been juggling a bunch of different projects so you will have to forgive me)

Any way thanks. Will do if I have some time.