ImageAsset

Engine/source/T3D/assets/ImageAsset.h

More...

Public Types

enum
ImageTypes {
  Albedo = 0
  Normal = 1
  ORMConfig = 2
  GUI = 3
  Roughness = 4
  AO = 5
  Metalness = 6
  Glow = 7
  Particle = 8
  Decal = 9
  Cubemap = 10
  ImageTypeCount = 11
}

The different types of image use cases.

Private Types

Parent 

Public Functions

Protected Static Functions

const char *
getImageFileName(void * obj, const char * data)
bool
setImageFileName(void * obj, const char * index, const char * data)

Detailed Description

Public Types

ImageTypes

Enumerator

Albedo = 0
Normal = 1
ORMConfig = 2
GUI = 3
Roughness = 4
AO = 5
Metalness = 6
Glow = 7
Particle = 8
Decal = 9
Cubemap = 10
ImageTypeCount = 11

The different types of image use cases.

Private Types

typedef AssetBase Parent 

Protected Attributes

GFXTexHandle mImage 
StringTableEntry mImageFileName 
StringTableEntry mImagePath 
ImageTypes mImageType 
bool mIsHDRImage 
bool mIsValidImage 
Map< GFXTextureProfile, GFXTexHandle > mResourceMap 
bool mUseMips 

Public Functions

ImageAsset()

~ImageAsset()

copyTo(SimObject * object)

Reimplemented from: AssetBase

DECLARE_CONOBJECT(ImageAsset )

Declare Console Object.

getImage(GFXTextureProfile requestedProfile)

getImageFileName(void )

getImageInfo()

getImagePath(void )

isValid()

setImageFileName(const char * pScriptFile)

setImageType(ImageTypes type)

Public Static Functions

getAssetByFilename(StringTableEntry fileName, AssetPtr< ImageAsset > * imageAsset)

getAssetById(StringTableEntry assetId, AssetPtr< ImageAsset > * imageAsset)

getAssetIdByFilename(StringTableEntry fileName)

getImageTypeFromName(const char * name)

getImageTypeNameFromType(ImageTypes type)

initPersistFields()

Engine.

Protected Functions

initializeAsset(void )

Reimplemented from: AssetBase

loadImage()

onAssetRefresh(void )

Reimplemented from: AssetBase

Protected Static Functions

getImageFileName(void * obj, const char * data)

setImageFileName(void * obj, const char * index, const char * data)