pub trait Foundation: Class<PxFoundation> + Sized {
    type Allocator: AllocatorCallback;

    fn new(allocator: Self::Allocator) -> Option<Owner<Self>> { ... }
    fn get_error_callback(&mut self) -> Option<&mut PxErrorCallback> { ... }
    fn set_error_level(&mut self, mask: BitFlags<ErrorCode>) { ... }
    fn get_error_level(&self) -> BitFlags<ErrorCode> { ... }
    fn get_allocator_callback(&mut self) -> Option<&mut Self::Allocator> { ... }
    fn get_report_allocation_names(&self) -> bool { ... }
    fn set_report_allocation_names(&mut self, value: bool) { ... }
}

Required Associated Types

Provided Methods

Tries to create a PxFoundation of the given version with the default allocator and error callbacks. Returns None if phys_PxCreateFoundation returns a null pointer.

Get the error callback.

Set the error level.

Get the error level.

Get the allocator callback.

Get whether allocation names are reported.

Set whether allocation names are reported.

Implementors