Ejemplo n.º 1
0
        public static CCRenderTexture renderTextureWithWidthAndHeight(int w, int h)
        {
            CCRenderTexture cCRenderTexture = new CCRenderTexture();

            if (cCRenderTexture.initWithWidthAndHeight(w, h, CCTexture2DPixelFormat.kCCTexture2DPixelFormat_RGBA8888))
            {
                return(cCRenderTexture);
            }
            return(null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// creates a RenderTexture object with width and height in Points and a pixel format, only RGB and RGBA formats are valid
        /// </summary>
        public static CCRenderTexture renderTextureWithWidthAndHeight(int w, int h, CCTexture2DPixelFormat eFormat)
        {
            CCRenderTexture pRet = new CCRenderTexture();

            if (pRet.initWithWidthAndHeight(w, h, eFormat))
            {
                return(pRet);
            }

            return(null);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// creates a RenderTexture object with width and height in Points and a pixel format, only RGB and RGBA formats are valid
        /// </summary>
        public static CCRenderTexture renderTextureWithWidthAndHeight(int w, int h, CCTexture2DPixelFormat eFormat)
        {
            CCRenderTexture pRet = new CCRenderTexture();

            if (pRet.initWithWidthAndHeight(w, h, eFormat))
            {
                return pRet;
            }

            return null;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// creates a RenderTexture object with width and height in Points and a pixel format, only RGB and RGBA formats are valid
        /// </summary>
        /// <param name="w"></param>
        /// <param name="h"></param>
        /// <param name="eFormat"></param>
        /// <returns></returns>
        public static CCRenderTexture renderTextureWithWidthAndHeight(int w, int h, CCTexture2DPixelFormat eFormat)
        {
            CCRenderTexture pRet = new CCRenderTexture();

            if (pRet != null && pRet.initWithWidthAndHeight(w, h, eFormat))
            {
                //pRet->autorelease();
                return pRet;
            }
            //CC_SAFE_DELETE(pRet);
            return null;
        }