@@ -4,6 +4,9 @@ use unity_native_plugin_sys::*;
44
55pub type RenderBuffer = unity_native_plugin_sys:: UnityRenderBuffer ;
66pub type TextureID = unity_native_plugin_sys:: UnityTextureID ;
7+ pub type RenderingEvent = unsafe extern "system" fn ( eventId : :: std:: os:: raw:: c_int ) ;
8+ pub type RenderingEventAndData =
9+ unsafe extern "system" fn ( eventId : :: std:: os:: raw:: c_int , data : * mut :: std:: os:: raw:: c_void ) ;
710
811#[ repr( u32 ) ]
912#[ derive( Copy , Clone ) ]
@@ -38,7 +41,7 @@ define_unity_interface!(
3841 0x8C5AD4926EB17B11_u64
3942) ;
4043
41- pub type UnityGraphicsDeviceEventCallback = extern "system" fn ( eventType : GfxDeviceEventType ) ;
44+ pub type GraphicsDeviceEventCallback = extern "system" fn ( eventType : GfxDeviceEventType ) ;
4245
4346impl UnityGraphics {
4447 pub fn get_renderer ( & self ) -> GfxRenderer {
@@ -52,7 +55,7 @@ impl UnityGraphics {
5255
5356 pub fn register_device_event_callback (
5457 & self ,
55- callback : Option < UnityGraphicsDeviceEventCallback > ,
58+ callback : Option < GraphicsDeviceEventCallback > ,
5659 ) {
5760 unsafe {
5861 if let Some ( intf) = self . interface ( ) . RegisterDeviceEventCallback {
@@ -63,7 +66,7 @@ impl UnityGraphics {
6366
6467 pub fn unregister_device_event_callback (
6568 & self ,
66- callback : Option < UnityGraphicsDeviceEventCallback > ,
69+ callback : Option < GraphicsDeviceEventCallback > ,
6770 ) {
6871 unsafe {
6972 if let Some ( intf) = self . interface ( ) . UnregisterDeviceEventCallback {
0 commit comments