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

    fn new(allocator: Self::Allocator) -> Option<Owner<Self>> { ... }
    unsafe fn with_allocator_error_callback(
        allocator: Self::Allocator,
        error_callback: *mut PxErrorCallback
    ) -> 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.

Tries to create a PxFoundation with the provided allocator and error callbacks. Returns None if phys_PxCreateFoundation returns a null pointer.

Safety

error_callback must live as long as the returned Foundation

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