Hi Antonio,
parameter->getName();
Andreas
Hi Andreas,
you can get the parameters from the SHLChunk.
Andreas
MFShaderParameterPtr ¶meters = _shl->getParameters();
for(UInt32 i = 0; i < parameters.size(); ++i)
{
ShaderParameterPtr parameter = parameters[i];
switch(parameter->getTypeId())
{
case ShaderParameter::SHPTypeInt:
{
ShaderParameterIntPtr p =
ShaderParameterIntPtr::dcast(parameter);
Int32 v = p->getValue();
}
case ShaderParameter::SHPTypeVec2f:
case ShaderParameter::SHPTypeVec3f:
case ShaderParameter::SHPTypeVec4f:
case ShaderParameter::SHPTypeMatrix:
....
}
}
... but it doesn't give me the actual name
of the parameter, does it?
Toni
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users