UnityEngine.RenderBuffer.GetNativeRenderBufferPtr C# (CSharp) 메소드

GetNativeRenderBufferPtr() 공개 메소드

Returns native RenderBuffer. Be warned this is not native Texture, but rather pointer to unity struct that can be used with native unity API. Currently such API exists only on iOS.

public GetNativeRenderBufferPtr ( ) : IntPtr
리턴 System.IntPtr
        public IntPtr GetNativeRenderBufferPtr()
        {
            return RenderBufferHelper.GetNativeRenderBufferPtr(this.m_BufferPtr);
        }
    }

Usage Example

예제 #1
0
// fields

// properties

// methods

    static bool RenderBuffer_GetNativeRenderBufferPtr(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 0)
        {
            UnityEngine.RenderBuffer argThis = (UnityEngine.RenderBuffer)vc.csObj;                JSApi.setIntPtr((int)JSApi.SetType.Rval, (System.IntPtr)(argThis.GetNativeRenderBufferPtr()));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }