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; }
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; }