public static extern IntPtr BON_Scene_Create(
     [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback onLoad,
     [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback onUnload,
     [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback onStart,
     [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback onDraw,
     [MarshalAs(UnmanagedType.FunctionPtr)] DoubleParamCallback onUpdate,
     [MarshalAs(UnmanagedType.FunctionPtr)] DoubleParamCallback onFixedUpdate);
Esempio n. 2
0
 public static extern IntPtr BON_Manager_Create([MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback initialize, [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback start, [MarshalAs(UnmanagedType.FunctionPtr)] NoParamsCallback dispose, [MarshalAs(UnmanagedType.FunctionPtr)] DoubleParamCallback update, [MarshalAs(UnmanagedType.LPStr)] string id);