/// 開始 public override bool DoStart() { int mdlResId = (int)Data.ModelResId.Eff07; int texResId = (int)Data.ModelTexResId.EffF; int shaResId = (int)Data.ModelShaderReslId.Normal; Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel(mdlResId), resMgr.GetTextureContainer(texResId), resMgr.GetShaderContainer(shaResId)); useMdlHdl.SetPlayAnim(0, true); DoUpdateMatrix(); return(true); }
/// モデルのセット public void SetBeforehandMdlBindTex(Data.FixTypeId fixTypeId, int lodLv) { int fixTypeIdx = (int)fixTypeId; int mdlResId = (int)ObjFixLodData.LodModelTbl[fixTypeIdx, lodLv]; int texResId = (int)Data.ModelTexResId.Fix00 + fixTypeIdx; int shaResId = (int)Data.ModelShaderReslId.Normal; if (mdlResId >= (int)Data.ModelResId.Fix00) { Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel(mdlResId), resMgr.GetTextureContainer(texResId), resMgr.GetShaderContainer(shaResId)); } }
/// 開始 public override bool DoStart() { Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel((int)Data.ModelResId.Stage), resMgr.GetTextureContainer((int)Data.ModelTexResId.Stage), resMgr.GetShaderContainer((int)Data.ModelShaderReslId.Normal) ); useMdlSkyHdl.Start(resMgr.GetModel((int)Data.ModelResId.Sky), resMgr.GetTextureContainer((int)Data.ModelTexResId.Sky), resMgr.GetShaderContainer((int)Data.ModelShaderReslId.Normal) ); useMdlHdl.SetPlayAnim(0, true); useMdlSkyHdl.SetPlayAnim(0, true); return(true); }
/// 開始 public override bool DoStart() { Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel((int)Data.ModelResId.Sword), resMgr.GetTextureContainer((int)Data.ModelTexResId.Sword), resMgr.GetShaderContainer((int)Data.ModelShaderReslId.Normal) ); useMdlEffHdl.Start(resMgr.GetModel((int)Data.ModelResId.Eff00), resMgr.GetTextureContainer((int)Data.ModelTexResId.EffA), resMgr.GetShaderContainer((int)Data.ModelShaderReslId.Normal) ); useMdlEffHdl.SetPlayAnim(0, true); DoUpdateMatrix(); return(true); }
/// public メソッド ///--------------------------------------------------------------------------- /// モデルのセット public void SetMdlHandle(Data.EffTypeId effTypeId) { int effTypeIdx = (int)effTypeId; int mdlResId = (int)Data.ModelResId.Eff00 + effTypeIdx; int texResId = (int)Data.ModelTexResId.EffA; int shaResId = (int)Data.ModelShaderReslId.Normal; switch (effTypeId) { case Data.EffTypeId.Eff00: texResId = (int)Data.ModelTexResId.EffA; break; case Data.EffTypeId.Eff01: texResId = (int)Data.ModelTexResId.EffB; break; case Data.EffTypeId.Eff02: texResId = (int)Data.ModelTexResId.EffB; break; case Data.EffTypeId.Eff03: texResId = (int)Data.ModelTexResId.EffC; break; case Data.EffTypeId.Eff04: texResId = (int)Data.ModelTexResId.EffC; break; case Data.EffTypeId.Eff05: texResId = (int)Data.ModelTexResId.EffD; break; case Data.EffTypeId.Eff06: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff07: texResId = (int)Data.ModelTexResId.EffF; break; case Data.EffTypeId.Eff08: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff09: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff10: texResId = (int)Data.ModelTexResId.EffG; break; case Data.EffTypeId.Eff11: texResId = (int)Data.ModelTexResId.EffH; break; case Data.EffTypeId.Eff12: texResId = (int)Data.ModelTexResId.EffI; break; case Data.EffTypeId.Eff13: texResId = (int)Data.ModelTexResId.EffI; break; case Data.EffTypeId.Eff14: texResId = (int)Data.ModelTexResId.EffI; break; } Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel(mdlResId), resMgr.GetTextureContainer(texResId), resMgr.GetShaderContainer(shaResId)); useMdlHdl.SetPlayAnim(0, false); }