CgExamples.Gl_14_bulge.GET_PARAM C# (CSharp) Method

GET_PARAM() private static method

private static GET_PARAM ( string name ) : void
name string
return void
        private static void GET_PARAM(string name)
        {
            FieldInfo fieldInfo = typeof(Gl_14_bulge).GetField("myCgVertexParam_" + name
                , BindingFlags.Static | BindingFlags.NonPublic);
            fieldInfo.SetValue(null, Cg.cgGetNamedParameter(myCgVertexProgram, name));
            checkForCgError("could not get " + name + " parameter");
        }