static public int IssuePluginEvent(IntPtr l) { try { UnityEngine.Rendering.CommandBuffer self = (UnityEngine.Rendering.CommandBuffer)checkSelf(l); System.IntPtr a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.IssuePluginEvent(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
/// <summary> /// Create a command buffer that renders the AR screen full screen at the right time. /// </summary> /// <returns>The AR screen command buffer.</returns> public static CommandBuffer CreateARScreenCommandBuffer() { CommandBuffer buf = new CommandBuffer(); #if UNITY_EDITOR _InternResourcesForEmulation(); buf.Blit((Texture)m_emulatedARScreenTexture, BuiltinRenderTextureType.CurrentActive, m_emulationArScreenMaterial); #else IntPtr func = API.TangoUnity_getRenderTextureFunction(); buf.IssuePluginEvent(func, 0); #endif return buf; }
/// <summary> /// Unregister given renderer /// </summary> public static void Shutdown(Noesis.View view, UnityEngine.Rendering.CommandBuffer commands) { commands.IssuePluginEvent(_renderShutdownCallback, view.GetHashCode()); }
/// <summary> /// Sends render commands to native code /// </summary> public static void RenderOnscreen(Noesis.View view, bool flipY, UnityEngine.Rendering.CommandBuffer commands) { commands.IssuePluginEvent(flipY ? _renderOnscreenFlipYCallback : _renderOnscreenCallback, view.GetHashCode()); }