Ejemplo n.º 1
0
        private static void IssuePluginEvent(AVPPluginEvent type, int param)
        {
            // Build eventId from the type and param.
            int eventId = 0x5d5ac000 | ((int)type << 8);

            switch (type)
            {
            case AVPPluginEvent.PlayerUpdate:
            case AVPPluginEvent.PlayerShutdown:
                eventId |= param & 0xff;
                break;
            }

#if UNITY_5 && !UNITY_5_0 && !UNITY_5_1
            GL.IssuePluginEvent(AVPGetRenderEventFunc(), eventId);
#else
            GL.IssuePluginEvent(eventId);
#endif
        }
        private static void IssuePluginEvent(AVPPluginEvent type, int param)
        {
            // Build eventId from the type and param.
            int eventId = 0x5d5ac000 | ((int)type << 8);

            switch (type)
            {
            case AVPPluginEvent.PlayerSetup:
            case AVPPluginEvent.PlayerUpdate:
            {
                eventId |= param & 0xff;
            }
            break;
            }

#if AVPROVIDEO_ISSUEPLUGINEVENT_UNITY52
            GL.IssuePluginEvent(_nativeFunction_RenderEvent, eventId);
#else
            GL.IssuePluginEvent(eventId);
#endif
        }