Ejemplo n.º 1
0
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry entry, GpuProgramParameters gpuParams)
 {
     if (customParams[entry.data] != null)
     {
         gpuParams.SetConstant(entry.index, (Vector4)customParams[entry.data]);
     }
 }
Ejemplo n.º 2
0
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry entry, GpuProgramParameters gpuParams)
 {
     if (this.customParams[entry.Data] != null)
     {
         gpuParams.SetConstant(entry.PhysicalIndex, (Vector4)this.customParams[entry.Data]);
     }
 }
Ejemplo n.º 3
0
 public override void _updateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry constantEntry, GpuProgramParameters arg1)
 {
     OgrePINVOKE.SubEntity__updateCustomGpuParameter(swigCPtr, GpuProgramParameters.AutoConstantEntry.getCPtr(constantEntry), GpuProgramParameters.getCPtr(arg1));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public virtual void _updateCustomGpuParameter(ushort paramIndex, GpuProgramParameters.AutoConstantEntry constantEntry, GpuProgramParameters arg2)
 {
     OgrePINVOKE.Light__updateCustomGpuParameter(swigCPtr, paramIndex, GpuProgramParameters.AutoConstantEntry.getCPtr(constantEntry), GpuProgramParameters.getCPtr(arg2));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
        public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry entry, GpuProgramParameters gpuParams)
        {
            if (entry.type == AutoConstants.AnimationParametric)
            {
                // Set up to 4 values, or up to limit of hardware animation entries
                // Pack into 4-element constants offset based on constant data index
                // If there are more than 4 entries, this will be called more than once
                Vector4 val = Vector4.Zero;

                int animIndex = entry.data * 4;
                for (int i = 0; i < 4 &&
                     animIndex < hardwareVertexAnimVertexData.HWAnimationDataList.Count;
                     ++i, ++animIndex)
                {
                    val[i] = hardwareVertexAnimVertexData.HWAnimationDataList[animIndex].Parametric;
                }
                // set the parametric morph value
                gpuParams.SetConstant(entry.index, val);
            }
            else if (customParams[entry.data] != null)
            {
                gpuParams.SetConstant(entry.index, (Vector4)customParams[entry.data]);
            }
        }
Ejemplo n.º 6
0
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry constant, GpuProgramParameters parameters)
 {
     parameters.SetNamedConstant(_scaleFactorName, ScaleFactor);
     parameters.SetNamedConstant(_fineBlockOriginName, FineBlockOrigin);
 }
Ejemplo n.º 7
0
 /// <summary>
 ///		Update a custom GpuProgramParameters constant which is derived from
 ///		information only this Renderable knows.
 /// </summary>
 /// <remarks>
 ///		This method allows a Renderable to map in a custom GPU program parameter
 ///		based on it's own data. This is represented by a GPU auto parameter
 ///		of AutoConstantType.Custom, and to allow there to be more than one of these per
 ///		Renderable, the 'data' field on the auto parameter will identify
 ///		which parameter is being updated. The implementation of this method
 ///		must identify the parameter being updated, and call a 'SetConstant'
 ///		method on the passed in <see cref="GpuProgramParameters"/> object, using the details
 ///		provided in the incoming auto constant setting to identify the index
 ///		at which to set the parameter.
 /// </remarks>
 /// <param name="constant">The auto constant entry referring to the parameter being updated.</param>
 /// <param name="parameters">The parameters object which this method should call to set the updated parameters.</param>
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry constant, GpuProgramParameters parameters)
 {
 }
 public void UpdateCustomGpuParameter(GpuProgramParameters.AutoConstantEntry constant, GpuProgramParameters parameters)
 {
     throw new NotImplementedException();
 }