void Shader::setGeometryShaderParameters(Ogre::RenderOperation::OperationType in, Ogre::RenderOperation::OperationType out, int max) { GLSLProgram* t = static_cast<GLSLProgram*> (geometry.getPointer()); t->setInputOperationType(in); t->setOutputOperationType(out); t->setMaxOutputVertices(max); }
void GLSLProgram::CmdMaxOutputVertices::doSet(void* target, const String& val) { GLSLProgram* t = static_cast<GLSLProgram*>(target); t->setMaxOutputVertices(StringConverter::parseInt(val)); }