示例#1
0
 public static CCRenderTexture Create(int w, int h, SurfaceFormat format, DepthFormat depthFormat, RenderTargetUsage usage)
 {
     var pRet = new CCRenderTexture();
     pRet.InitWithWidthAndHeight(w, h, format, depthFormat, usage);
     return pRet;
 }
示例#2
0
 public static CCRenderTexture Create(int w, int h, SurfaceFormat format)
 {
     var pRet = new CCRenderTexture();
     pRet.InitWithWidthAndHeight(w, h, format, DepthFormat.None, RenderTargetUsage.DiscardContents);
     return pRet;
 }