fmod/core/geometry/
mod.rs1use fmod_sys::*;
8
9mod general;
10mod polygons;
11mod spatialization;
12
13#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
14#[repr(transparent)] pub struct Geometry {
16 pub(crate) inner: *mut FMOD_GEOMETRY,
17}
18
19unsafe impl Send for Geometry {}
20unsafe impl Sync for Geometry {}
21
22impl From<*mut FMOD_GEOMETRY> for Geometry {
23 fn from(value: *mut FMOD_GEOMETRY) -> Self {
24 Geometry { inner: value }
25 }
26}
27
28impl From<Geometry> for *mut FMOD_GEOMETRY {
29 fn from(value: Geometry) -> Self {
30 value.inner
31 }
32}