Implementation of guiRenderTargetVizCtrl

This commit is contained in:
Lukas Aldershaab 2020-10-03 00:58:38 +02:00
parent 76c5e30869
commit dca2dc0074
8 changed files with 339 additions and 3 deletions

View file

@ -145,4 +145,16 @@ void NamedTexTarget::getShaderMacros( Vector<GFXShaderMacro> *outMacros )
macro.value = uncondMethod;
outMacros->push_back( macro );
}
}
}
DefineEngineFunction(getNamedTargetList, String, (), , "")
{
String targetList = "";
NamedTexTarget::TargetMap targets = NamedTexTarget::getTargetMap();
for (NamedTexTarget::TargetMap::Iterator iter = targets.begin(); iter != targets.end(); iter++)
{
targetList += iter->value->getName() + " ";
}
return targetList;
}

View file

@ -117,9 +117,13 @@ public:
ConditionerFeature* getConditioner() const { return mConditioner; }
void getShaderMacros( Vector<GFXShaderMacro> *outMacros );
typedef Map<String, NamedTexTarget*> TargetMap;
static TargetMap getTargetMap() {
return smTargets;
}
protected:
typedef Map<String,NamedTexTarget*> TargetMap;
///
static TargetMap smTargets;