Esempio n. 1
0
        /// <summary>
        /// Adds a custom dynamic parameter ep. A dynamic parameter is updated every frame.
        /// </summary>
        /// <param name="ep">A custom parameter</param>
        public void SetDynamicParameter(SharedParameter ep)
        {
            int index;
            if ((index = dynamicParameters.IndexOfKey(ep.Name)) != -1)
                dynamicParameters.RemoveAt(index);

            dynamicParameters.Add(ep.Name, ep);
        }
Esempio n. 2
0
        /// <summary>
        /// Sets a custom static parameter ep. A static parameter is updated only once.
        /// </summary>
        /// <param name="ep">A custom parameter</param>
        public void SetStaticParameter(SharedParameter ep)
        {
            int index;
            if ((index = staticParameters.IndexOfKey(ep.Name)) != -1)
                staticParameters.RemoveAt(index);

            staticParameters.Add(ep.Name, ep);
        }