C# Class ActiveTextureManagement.TextureConverter

Mostra file Open project: rbray89/ActiveTextureManagement Class Usage Examples

Public Methods

Method Description
ConvertToUnityNormalMap ( Color32 colors ) : void
DDSToTexture ( UrlDir file, TexInfo Texture, bool mipmaps, bool isCompressed, bool hasAlpha ) : TextureInfoWrapper
DestroyImageBuffer ( ) : void
GetReadable ( TexInfo Texture, bool mipmaps ) : void
IMGToTexture ( TexInfo Texture, bool mipmaps, bool isNormalFormat ) : void
InitImageBuffer ( ) : void
MBMToTexture ( TexInfo Texture, bool mipmaps ) : void
Resize ( TextureInfoWrapper texture, int width, int height, bool mipmaps, bool convertToNormalFormat ) : void
TGAToTexture ( TexInfo Texture, bool mipmaps ) : void

Private Methods

Method Description
GetPixel ( Color32 pixels, int width, int height, float w, float h, int newWidth, int newHeight ) : Color32
ResizePixels ( Color32 pixels, int width, int height, int newWidth, int newHeight ) : UnityEngine.Color32[]
WriteTo ( Texture2D cacheTexture, string cacheFile, bool compress ) : bool
texHasAlpha ( byte colors ) : bool

Method Details

ConvertToUnityNormalMap() public static method

public static ConvertToUnityNormalMap ( Color32 colors ) : void
colors UnityEngine.Color32
return void

DDSToTexture() public static method

public static DDSToTexture ( UrlDir file, TexInfo Texture, bool mipmaps, bool isCompressed, bool hasAlpha ) : TextureInfoWrapper
file UrlDir
Texture TexInfo
mipmaps bool
isCompressed bool
hasAlpha bool
return TextureInfoWrapper

DestroyImageBuffer() public static method

public static DestroyImageBuffer ( ) : void
return void

GetReadable() public static method

public static GetReadable ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
return void

IMGToTexture() public static method

public static IMGToTexture ( TexInfo Texture, bool mipmaps, bool isNormalFormat ) : void
Texture TexInfo
mipmaps bool
isNormalFormat bool
return void

InitImageBuffer() public static method

public static InitImageBuffer ( ) : void
return void

MBMToTexture() public static method

public static MBMToTexture ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
return void

Resize() public static method

public static Resize ( TextureInfoWrapper texture, int width, int height, bool mipmaps, bool convertToNormalFormat ) : void
texture TextureInfoWrapper
width int
height int
mipmaps bool
convertToNormalFormat bool
return void

TGAToTexture() public static method

public static TGAToTexture ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
return void