void IContentOwner.LoadContent(ContentRegister content, DrawState state, ContentManager manager) { xnaLogic.state.GetRenderState(state.BeginGetGraphicsDevice(Xen.Graphics.State.StateFlag.None)).DirtyInternalRenderState(Xen.Graphics.State.StateFlag.All); state.EndGetGraphicsDevice(); if (readToLoadContent) { this.LoadContent(state, manager); } }
void IContentOwner.UnloadContent(ContentRegister content, DrawState state) { xnaLogic.state.GetRenderState(state.BeginGetGraphicsDevice(Xen.Graphics.State.StateFlag.None)).DirtyInternalRenderState(Xen.Graphics.State.StateFlag.All); state.EndGetGraphicsDevice(); this.UnloadContent(state); }