mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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
|
|
@ -73,9 +73,12 @@ public:
|
|||
GFXTexHandle* getCubeFaceTexture(U32 faceIdx) { return &mCubeMapFaceTex[faceIdx]; }
|
||||
|
||||
protected:
|
||||
DECLARE_IMAGEASSET(CubemapData, CubeMap, GFXStaticTextureSRGBProfile);
|
||||
AssetRef<ImageAsset> mCubeMapAssetRef;
|
||||
GFXTexHandle getCubeMap() { return mCubeMapAssetRef.notNull() ? mCubeMapAssetRef.assetPtr->getTexture(&GFXStaticTextureSRGBProfile) : NULL; }
|
||||
|
||||
DECLARE_IMAGEASSET_ARRAY(CubemapData, CubeMapFace, GFXStaticTextureSRGBProfile, 6);
|
||||
AssetRef<ImageAsset> mCubeMapFaceAssetRef[6];
|
||||
GFXTexHandle getCubeMapFace(const U32& index) { return mCubeMapFaceAssetRef[index].notNull() ? mCubeMapFaceAssetRef[index].assetPtr->getTexture(&GFXStaticTextureSRGBProfile) : GFXTexHandle(); }
|
||||
AssetPtr<ImageAsset> getCubeMapFaceAsset(const U32& index) { return mCubeMapFaceAssetRef[index].assetPtr; }
|
||||
|
||||
GFXTexHandle mCubeMapFaceTex[6];
|
||||
GFXTexHandle mDepthBuff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue