Example #1
0
 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);
     }
 }
Example #2
0
 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);
 }