mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Updates ImageAsset usage to utilize AssetRef, and standardizes the setter/getter functions and naming conventions, as well as the ability to use and bind named targets.
This commit is contained in:
parent
a858d8624e
commit
34e3f78a22
82 changed files with 1451 additions and 951 deletions
|
|
@ -90,7 +90,8 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
DECLARE_IMAGEASSET_ARRAY(PostEffect, Texture, GFXStaticTextureSRGBProfile, NumTextures);
|
||||
AssetRef<ImageAsset> mTextureAssetRef[NumTextures];
|
||||
GFXTexHandle getTexture(const U32& index, GFXTextureProfile* profile) { return mTextureAssetRef[index].notNull() ? mTextureAssetRef[index].assetPtr->getTexture(profile) : GFXTexHandle(); }
|
||||
GFXTextureProfile* mTextureProfile[NumTextures];
|
||||
GFXTexHandle mTexture[NumTextures];
|
||||
|
||||
|
|
@ -440,6 +441,8 @@ public:
|
|||
|
||||
F32 getPriority() const { return mRenderPriority; }
|
||||
|
||||
StringTableEntry getTextureAssetId(const U32& index) const { return mTextureAssetRef[index].assetId; }
|
||||
|
||||
void setTexture( U32 index, const String &filePath );
|
||||
void setTexture(U32 index, const GFXTexHandle& texHandle);
|
||||
void setCubemapTexture(U32 index, const GFXCubemapHandle &cubemapHandle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue