pub struct Geometry { /* private fields */ }Implementations§
source§impl Geometry
impl Geometry
pub fn from(pointer: *mut FMOD_GEOMETRY) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_GEOMETRY
pub fn release(&self) -> Result<(), Error>
pub fn add_polygon( &self, directocclusion: f32, reverbocclusion: f32, doublesided: bool, numvertices: i32, vertices: Vector ) -> Result<i32, Error>
pub fn get_num_polygons(&self) -> Result<i32, Error>
pub fn get_max_polygons(&self) -> Result<(i32, i32), Error>
pub fn get_polygon_num_vertices(&self, index: i32) -> Result<i32, Error>
pub fn set_polygon_vertex( &self, index: i32, vertexindex: i32, vertex: Vector ) -> Result<(), Error>
pub fn get_polygon_vertex( &self, index: i32, vertexindex: i32 ) -> Result<Vector, Error>
pub fn set_polygon_attributes( &self, index: i32, directocclusion: f32, reverbocclusion: f32, doublesided: bool ) -> Result<(), Error>
pub fn get_polygon_attributes( &self, index: i32 ) -> Result<(f32, f32, bool), Error>
pub fn set_active(&self, active: bool) -> Result<(), Error>
pub fn get_active(&self) -> Result<bool, Error>
pub fn set_rotation( &self, forward: Option<Vector>, up: Option<Vector> ) -> Result<(), Error>
pub fn get_rotation(&self) -> Result<(Vector, Vector), Error>
pub fn set_position(&self, position: Vector) -> Result<(), Error>
pub fn get_position(&self) -> Result<Vector, Error>
pub fn set_scale(&self, scale: Vector) -> Result<(), Error>
pub fn get_scale(&self) -> Result<Vector, Error>
pub fn save(&self) -> Result<(*mut c_void, i32), Error>
pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>
pub fn get_user_data(&self) -> Result<*mut c_void, Error>
Trait Implementations§
impl Copy for Geometry
impl Send for Geometry
impl Sync for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more