Package physx.common

Class PxErrorCallback

java.lang.Object
physx.NativeObject
physx.common.PxErrorCallback
Direct Known Subclasses:
PxDefaultErrorCallback, PxErrorCallbackImpl

public class PxErrorCallback extends NativeObject
User defined interface class. Used by the library to emit debug information.

Note: The SDK state should not be modified from within any error reporting functions.

Threading: The SDK sequences its calls to the output stream using a mutex, so the class need not be implemented in a thread-safe manner if the SDK is the only client.

  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxErrorCallback

      protected PxErrorCallback()
    • PxErrorCallback

      protected PxErrorCallback(long address)
  • Method Details

    • wrapPointer

      public static PxErrorCallback wrapPointer(long address)
    • arrayGet

      public static PxErrorCallback arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • reportError

      public void reportError(PxErrorCodeEnum code, String message, String file, int line)
      Reports an error code. \param code Error code, see #PxErrorCode \param message Message to display. \param file File error occured in. \param line Line number error occured on.