C# Class ActiveTextureManagement.TextureConverter

Afficher le fichier Open project: rbray89/ActiveTextureManagement Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static ConvertToUnityNormalMap ( Color32 colors ) : void
colors UnityEngine.Color32
Résultat void

DDSToTexture() public static méthode

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

DestroyImageBuffer() public static méthode

public static DestroyImageBuffer ( ) : void
Résultat void

GetReadable() public static méthode

public static GetReadable ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
Résultat void

IMGToTexture() public static méthode

public static IMGToTexture ( TexInfo Texture, bool mipmaps, bool isNormalFormat ) : void
Texture TexInfo
mipmaps bool
isNormalFormat bool
Résultat void

InitImageBuffer() public static méthode

public static InitImageBuffer ( ) : void
Résultat void

MBMToTexture() public static méthode

public static MBMToTexture ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
Résultat void

Resize() public static méthode

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

TGAToTexture() public static méthode

public static TGAToTexture ( TexInfo Texture, bool mipmaps ) : void
Texture TexInfo
mipmaps bool
Résultat void