/// <summary> /// Flips the specified texture. /// </summary> /// <param name="sTexture">The texture.</param> /// <param name="eFlipDirection">The flip direction.</param> /// <returns></returns> public static bool Flip(PVRTexture sTexture, EPVRTAxis eFlipDirection) { return(pvrttFlip(sTexture.texture, eFlipDirection)); }
private extern static bool pvrttFlip(IntPtr sTexture, EPVRTAxis eFlipDirection);
/// <summary> /// Flips the specified texture. /// </summary> /// <param name="sTexture">The texture.</param> /// <param name="eFlipDirection">The flip direction.</param> /// <returns></returns> public static bool Flip(PVRTexture sTexture, EPVRTAxis eFlipDirection) { return pvrttFlip(sTexture.texture, eFlipDirection); }
/// <summary> /// Rotates a texture by 90 degrees around the given axis. bForward controls direction of rotation. /// </summary> /// <param name="sTexture">The texture.</param> /// <param name="eRotationAxis">Rotation axis</param> /// <param name="bForward">Direction of rotation; 1 = clockwise, 0 = anti-clockwise </param> /// <returns>True if the method succeeds or not.</returns> public static bool Rotate90(PVRTexture sTexture, EPVRTAxis eRotationAxis, bool bForward = true) { return(pvrttRotate90(sTexture.texture, eRotationAxis, bForward)); }
private extern static bool pvrttRotate90(IntPtr sTexture, EPVRTAxis eRotationAxis, bool bForward);