Hi Antonio,
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:
....
}
}
Hi,
I'd like to query the uniform parameters
from a shader (OpenGL 2.0) in order to query
automatically all uniform parameters a shader
has to offer.
The SHLChunk class provides methods to
set and get uniform parameters, but there's
no way to get a listing of all parameters
(including their types). Is there another
toolkit that lets me query this information?
OpenGL directly, perhaps?
Regards,
Toni
--
Ing. Antonio Bleile
Seac02 S.r.l.
via Avogadro 4
10121 Torino Italia
Tel. +39.011.197.006.52
Fax +39.011.197.006.53
E-mail [EMAIL PROTECTED]
Sito www.seac02.it
Questa E-mail è rivolta unicamente alle persone o enti ai quali è
indirizzata. Essa può contenere informazioni la cui riservatezza è tutelata.
Sono vietati la riproduzione e qualsiasi uso di questa e-mail e/o delle
informazioni in essa contenute in mancanza di autorizzazione del
destinatario.
This e-mail is intended only for the person or entity to which is addressed.
It may contain information that is privileged, proprietary, confidential,
attorney work product or otherwise exempted from disclosure under applicable
law. Copying, dissemination or use of this e-mail or the information herein
by anyone other than the intended recipient is prohibited.
-------------------------------------------------------
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=k&kid0709&bid&3057&dat1642
_______________________________________________
Opensg-users mailing list
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users