private IDrawable getModel(Device device, BackgroundWorker worker) { var model = new DrawablePmx(Pmx); model.SetDrawablePmx(this, worker); return(model); }
protected override void DrawContents() { // sprite sprite.EffectManager.SetCamera(this.Camera); sprite.ResetForDraw(); sprite.Draw(m_MaterialIndex, 2); // uv triangles DrawablePmx.ResetForDraw(); DrawablePmx.EffectManager.SetCamera(this.Camera); DrawablePmx.Draw(m_MaterialIndex, 3); // points this.GraphicsDevice.ImmediateContext.InputAssembler.PrimitiveTopology = PrimitiveTopology.PointList; DrawablePmx.Draw(m_MaterialIndex, 4); }
public virtual void UnloadContent() { DrawablePmx.Dispose(); EffectManager.Dispose(); }
protected virtual void DrawContents() { DrawablePmx.ResetForDraw(); DrawablePmx.Draw(); }