Example #1
0
        protected override bool SupportsFeature(RenderFeature feature)
        {
            if (feature == RenderFeature.CustomDecalProperties)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
 private static int OnSupportsFeature(int serial_number, RenderFeature f)
 {
   RenderPlugIn p = LookUpBySerialNumber(serial_number) as RenderPlugIn;
   if (null == p)
   {
     HostUtils.DebugString("ERROR: Invalid input for OnSupportsFeature");
   }
   else
   {
     try
     {
       return p.SupportsFeature(f) ? 1:0;
     }
     catch (Exception ex)
     {
       string error_msg = "Error occured during plug-in OnSupportsFeature\n Details:\n";
       error_msg += ex.Message;
       HostUtils.DebugString("Error " + error_msg);
     }
   }
   return 0;
 }
Example #3
0
 /// <summary>
 /// Determines if your renderer supports a specific feature.
 /// </summary>
 /// <param name="feature">A feature to be controlled.</param>
 /// <returns>true if the renderer indeed supports the feature.</returns>
 protected virtual bool SupportsFeature(RenderFeature feature)
 {
   return true;
 }
Example #4
0
 public RenderFeatureViewModel([NotNull] GraphicsCompositorEditorViewModel editor, RenderFeature renderFeature) : base(editor)
 {
     RenderFeature     = renderFeature;
     renderFeatureNode = editor.Session.AssetNodeContainer.GetOrCreateNode(renderFeature);
 }