예제 #1
0
        private static UnityEngine.RenderTexture CreateRenderTexture(int width, int height,
                                                                     UnityEngine.RenderTextureFormat format)
        {
            var tex = new UnityEngine.RenderTexture(width, height, 0, format);

            tex.Create();
            return(tex);
        }
// methods

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

        if (len == 1)
        {
            UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)JSApi.getEnum((int)JSApi.GetType.Arg);
            JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(UnityEngine.SystemInfo.SupportsRenderTextureFormat(arg0)));
        }

        return(true);
    }
예제 #3
0
    RenderTexture CreateRenderTeture(UnityEngine.RenderTextureFormat format)
    {
        var tex = new RenderTexture((int)Phillips.meshSize, (int)Phillips.meshSize, 0, format);

        tex.enableRandomWrite = true;
        tex.Create();
        tex.filterMode = FilterMode.Bilinear;
        //tex.filterMode = FilterMode.Trilinear;
        tex.wrapMode = TextureWrapMode.Repeat;
        //tex.wrapMode = TextureWrapMode.Clamp;
        return(tex);
    }
예제 #4
0
    static bool RenderTexture_GetTemporary__Int32__Int32__Int32__RenderTextureFormat(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 4)
        {
            System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            System.Int32 arg1 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            System.Int32 arg2 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)JSApi.getEnum((int)JSApi.GetType.Arg);
            JSMgr.datax.setObject((int)JSApi.SetType.Rval, UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3));
        }

        return(true);
    }
예제 #5
0
 static void RenderTexture_format(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.RenderTexture _this = (UnityEngine.RenderTexture)vc.csObj;
         var result = _this.format;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.RenderTextureFormat arg0  = (UnityEngine.RenderTextureFormat)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.RenderTexture       _this = (UnityEngine.RenderTexture)vc.csObj;
         _this.format = arg0;
     }
 }
예제 #6
0
    static bool RenderTexture_RenderTexture2(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        int len = argc;

        if (len == 4)
        {
            System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            System.Int32 arg1 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            System.Int32 arg2 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)JSApi.getEnum((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3));
        }

        return(true);
    }