public void RemoveRModel(RModel model) { if (model.AlphaBlend) AlphaBlendRModels.Remove(model); else RModels.Remove(model); }
// precache an actor by loading all its model data, and parm file into the content manager // so that its really fast next time public static void PreCacheActor(string parmFile, Stage stage) { ParameterSet parm = Stage.Content.Load<ParameterSet>("Actors/" + parmFile); RModel rmodel = new RModel(parm); rmodel.LoadContent(Stage.Content, parm, stage); }
public void AddRModel(RModel model) { if (model.AlphaBlend) AlphaBlendRModels.Add(model); else RModels.Add(model); }
public RModelInstance(ParameterSet parm) { model = RModel.GetRModel(parm); if (parm.HasParm("DontDraw")) dontDraw = parm.GetBool("DontDraw"); }