mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +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
|
|
@ -64,7 +64,7 @@ protected:
|
|||
GFXTextureTargetRef mLevelTexture;
|
||||
Box3F mLevelBounds;
|
||||
|
||||
DECLARE_IMAGEASSET(GuiMissionAreaCtrl, HandleBitmap, GFXDefaultGUIProfile)
|
||||
AssetRef<ImageAsset> mHandleBitmapAssetRef;
|
||||
|
||||
Point2I mHandleTextureSize;
|
||||
Point2F mHandleTextureHalfSize;
|
||||
|
|
@ -112,6 +112,9 @@ public:
|
|||
|
||||
DECLARE_CONOBJECT(GuiMissionAreaCtrl);
|
||||
|
||||
GFXTexHandle getHandleBitmap() { return mHandleBitmapAssetRef.notNull() ? mHandleBitmapAssetRef.assetPtr->getTexture(&GFXDefaultGUIProfile) : NULL; }
|
||||
StringTableEntry getHandleBitmapFile() { return mHandleBitmapAssetRef.notNull() ? mHandleBitmapAssetRef.assetPtr->getImageFile() : ""; }
|
||||
|
||||
// SimObject
|
||||
bool onAdd() override;
|
||||
static void initPersistFields();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue