Changeset 1901
- Timestamp:
- 11/18/09 18:55:23 (3 months ago)
- Location:
- trunk/Projects
- Files:
-
- 16 modified
-
Axiom.Xbox.2008.sln (modified) (4 diffs)
-
Axiom/RenderSystems/XNA/Axiom.RenderSystems.Xna.Xbox.csproj (modified) (1 diff)
-
Axiom/RenderSystems/XNA/Source/XnaHardwarePixelBuffer.cs (modified) (1 diff)
-
Axiom/RenderSystems/XNA/Source/XnaHelper.cs (modified) (2 diffs)
-
Axiom/RenderSystems/XNA/Source/XnaRenderSystem.cs (modified) (1 diff)
-
Axiom/RenderSystems/XNA/Source/XnaRenderWindow.cs (modified) (21 diffs)
-
Axiom/RenderSystems/XNA/Source/XnaTexture.cs (modified) (3 diffs)
-
Axiom/SceneManagers/Bsp/BspSceneManager.cs (modified) (1 diff)
-
Axiom/Tools/Axiom.RenderSystems.Xna.Content/AxiomContentManager.cs (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CameraTrack.csproj (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CellShading.csproj (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CameraTrack.contentproj (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CellShading.contentproj (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.Common.contentproj (modified) (1 diff)
-
AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Game.cs (modified) (3 diffs)
-
AxiomDemos/Source/Demos/Axiom.Demos.Xbox.csproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Projects/Axiom.Xbox.2008.sln
r1756 r1901 33 33 EndProject 34 34 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Axiom.Demos.Xbox", "AxiomDemos\Source\Demos\Axiom.Demos.Xbox.csproj", "{EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4}" 35 EndProject36 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Axiom.Demos.Xbox.CellShading", "AxiomDemos\Source\Browser\Axiom.Demos.Browser.Xna\Axiom.Demos.Xbox.CellShading.csproj", "{865C5AD6-E8C9-46E6-B530-A9E34BE98B24}"37 35 EndProject 38 36 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Axiom.Demos.Xbox.CameraTrack", "AxiomDemos\Source\Browser\Axiom.Demos.Browser.Xna\Axiom.Demos.Xbox.CameraTrack.csproj", "{D00F8786-1360-4EB3-8392-B3C3315510E1}" … … 119 117 {EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4}.Release|Xbox 360.ActiveCfg = Release|Xbox 360 120 118 {EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4}.Release|Xbox 360.Build.0 = Release|Xbox 360 121 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Any CPU.ActiveCfg = Debug|Xbox 360122 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.ActiveCfg = Debug|Xbox 360123 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.Build.0 = Debug|Xbox 360124 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.Deploy.0 = Debug|Xbox 360125 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|x86.ActiveCfg = Debug|Xbox 360126 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Xbox 360.ActiveCfg = Debug|Xbox 360127 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Xbox 360.Build.0 = Debug|Xbox 360128 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Any CPU.ActiveCfg = Release|Xbox 360129 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.ActiveCfg = Release|Xbox 360130 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.Build.0 = Release|Xbox 360131 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.Deploy.0 = Release|Xbox 360132 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|x86.ActiveCfg = Release|Xbox 360133 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.ActiveCfg = Release|Xbox 360134 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.Build.0 = Release|Xbox 360135 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.Deploy.0 = Release|Xbox 360136 119 {D00F8786-1360-4EB3-8392-B3C3315510E1}.Debug|Any CPU.ActiveCfg = Debug|Xbox 360 137 120 {D00F8786-1360-4EB3-8392-B3C3315510E1}.Debug|Mixed Platforms.ActiveCfg = Debug|Xbox 360 … … 200 183 {BAA6AE8A-B259-4883-9805-CE538660A59A}.Release|x86.Build.0 = Release|x86 201 184 {BAA6AE8A-B259-4883-9805-CE538660A59A}.Release|Xbox 360.ActiveCfg = Release|x86 202 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Any CPU.ActiveCfg = Debug|x86203 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Mixed Platforms.ActiveCfg = Debug|x86204 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|x86.ActiveCfg = Debug|x86205 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Xbox 360.ActiveCfg = Debug|x86206 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Any CPU.ActiveCfg = Release|x86207 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Mixed Platforms.ActiveCfg = Release|x86208 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|x86.ActiveCfg = Release|x86209 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Xbox 360.ActiveCfg = Release|x86210 185 {EC8C6D1F-65FD-4368-9AB6-25AAA71F1326}.Debug|Any CPU.ActiveCfg = Debug|x86 211 186 {EC8C6D1F-65FD-4368-9AB6-25AAA71F1326}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 … … 237 212 {BAA6AE8A-B259-4883-9805-CE538660A59A} = {1EAB961C-47EC-4015-B61E-E672AE1C82A1} 238 213 {EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9} 239 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9}240 214 {D00F8786-1360-4EB3-8392-B3C3315510E1} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9} 241 215 {0CC816A6-62C5-416B-BFF5-DBB924A389E9} = {FC473D51-36A2-4437-BC06-92A8E92374B7} -
trunk/Projects/Axiom/RenderSystems/XNA/Axiom.RenderSystems.Xna.Xbox.csproj
r1663 r1901 85 85 <Compile Include="Source\XnaHardwareIndexBuffer.cs" /> 86 86 <Compile Include="Source\XnaHardwareOcclusionQuery.cs" /> 87 <Compile Include="Source\XnaHardwarePixelBuffer.cs" /> 87 88 <Compile Include="Source\XnaHardwareVertexBuffer.cs" /> 88 89 <Compile Include="Source\XnaHelper.cs" /> -
trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaHardwarePixelBuffer.cs
r1895 r1901 36 36 37 37 using System; 38 using System.Drawing;39 38 using System.Diagnostics; 40 39 using System.Collections; -
trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaHelper.cs
r1814 r1901 851 851 public static Rectangle ToRectangle( Core.Rectangle rectangle ) 852 852 { 853 Rectangle retVal ;853 Rectangle retVal = new Rectangle(); 854 854 retVal.X = (int)rectangle.Left; 855 855 retVal.Y = (int)rectangle.Top; … … 861 861 public static Rectangle ToRectangle( BasicBox rectangle ) 862 862 { 863 Rectangle retVal ;863 Rectangle retVal = new Rectangle(); 864 864 retVal.X = (int)rectangle.Left; 865 865 retVal.Y = (int)rectangle.Top; -
trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaRenderSystem.cs
r1895 r1901 1470 1470 LogManager.Instance.Write( "[XNA] : Subsystem Initializing" ); 1471 1471 1472 #if !( XBOX || XBOX360 ) 1472 1473 WindowEventMonitor.Instance.MessagePump = Win32MessageHandling.MessagePump; 1473 1474 #endif 1474 1475 _activeDriver = XnaHelper.GetDriverInfo()[ ConfigOptions[ "Rendering Device" ].Value ]; 1475 1476 if ( _activeDriver == null ) -
trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaRenderWindow.cs
r1895 r1901 48 48 using XNA = Microsoft.Xna.Framework; 49 49 using XFG = Microsoft.Xna.Framework.Graphics; 50 using Axiom.Graphics.Collections; 50 51 #if !(XBOX || XBOX360 || SILVERLIGHT) 51 52 using SWF = System.Windows.Forms; … … 64 65 #region Fields and Properties 65 66 66 private SWF.Control _window; // Win32 Window handle67 private bool _isExternal; // window not created by Ogre67 private IntPtr _windowHandle; // Win32 Window handle 68 private bool _isExternal; // window not created by Axiom 68 69 private bool _sizing; 69 70 private bool _isSwapChain; // Is this a secondary window? … … 96 97 get 97 98 { 98 if ( _window != null ) 99 { 99 #if !(XBOX || XBOX360 || SILVERLIGHT) 100 if ( _windowHandle != null ) 101 { 102 SWF.Control control = SWF.Control.FromHandle( _windowHandle ); 100 103 if ( _isExternal ) 101 104 { 102 if ( _windowis SWF.Form )105 if ( control is SWF.Form ) 103 106 { 104 if ( ( (SWF.Form) _window).WindowState == SWF.FormWindowState.Minimized )107 if ( ( (SWF.Form)control ).WindowState == SWF.FormWindowState.Minimized ) 105 108 { 106 109 return false; 107 110 } 108 111 } 109 else if ( _windowis SWF.PictureBox )112 else if ( control is SWF.PictureBox ) 110 113 { 111 SWF.Control parent = _window.Parent;114 SWF.Control parent = control.Parent; 112 115 while ( !( parent is SWF.Form ) ) 113 116 parent = parent.Parent; … … 121 124 else 122 125 { 123 if ( ( (SWF.Form) _window).WindowState == SWF.FormWindowState.Minimized )126 if ( ( (SWF.Form)control ).WindowState == SWF.FormWindowState.Minimized ) 124 127 { 125 128 return false; … … 129 132 else 130 133 return false; 131 134 #endif 132 135 return true; 133 136 } … … 211 214 public override void Create( string name, int width, int height, bool fullScreen, Axiom.Collections.NamedParameterList miscParams ) 212 215 { 213 SWF.Control parentHWnd = null;214 SWF.Control externalHWnd = null;216 IntPtr parentHWnd = IntPtr.Zero; 217 IntPtr externalHWnd = IntPtr.Zero; 215 218 String title = name; 216 219 int colourDepth = 32; … … 246 249 } 247 250 251 #if !(XBOX || XBOX360 || SILVERLIGHT) 248 252 // parentWindowHandle -> parentHWnd 249 253 if ( miscParams.ContainsKey( "parentWindowHandle" ) ) 250 254 { 251 255 object handle = miscParams[ "parentWindowHandle" ]; 252 IntPtr ptr = IntPtr.Zero;253 256 if ( handle.GetType() == typeof( IntPtr ) ) 254 257 { 255 p tr= (IntPtr)handle;258 parentHWnd = (IntPtr)handle; 256 259 } 257 260 else if ( handle.GetType() == typeof( System.Int32 ) ) 258 261 { 259 ptr = new IntPtr( (int)handle ); 260 } 261 parentHWnd = SWF.Control.FromHandle( ptr ); 262 //parentHWnd = (SWF.Control)miscParams[ "parentWindowHandle" ]; 262 parentHWnd = new IntPtr( (int)handle ); 263 } 263 264 } 264 265 … … 267 268 { 268 269 object handle = miscParams[ "externalWindowHandle" ]; 269 IntPtr ptr = IntPtr.Zero;270 270 if ( handle.GetType() == typeof( IntPtr ) ) 271 271 { 272 ptr= (IntPtr)handle;272 externalHWnd = (IntPtr)handle; 273 273 } 274 274 else if ( handle.GetType() == typeof( System.Int32 ) ) 275 275 { 276 ptr = new IntPtr( (int)handle ); 277 } 278 externalHWnd = SWF.Control.FromHandle( ptr ); 279 //externalHWnd = (SWF.Control)miscParams["externalWindowHandle"]; 280 //if ( !( externalHWnd is SWF.Form ) && !( externalHWnd is SWF.PictureBox ) ) 281 //{ 282 // throw new Exception( "externalWindowHandle must be either a Form or a PictureBox control." ); 283 //} 284 } 285 276 externalHWnd = new IntPtr( (int)handle ); 277 } 278 } 279 #endif 286 280 // vsync [parseBool] 287 281 if ( miscParams.ContainsKey( "vsync" ) ) … … 339 333 340 334 } 341 342 if ( _window != null )335 #if !(XBOX || XBOX360 || SILVERLIGHT) 336 if ( _windowHandle != null ) 343 337 Dispose(); 344 338 345 if ( externalHWnd == null)339 if ( externalHWnd == IntPtr.Zero ) 346 340 { 347 341 Width = width; … … 361 355 { 362 356 newWin.StartPosition = SWF.FormStartPosition.CenterScreen; 363 if ( parentHWnd != null)364 { 365 newWin.Parent = parentHWnd;357 if ( parentHWnd != IntPtr.Zero ) 358 { 359 newWin.Parent = SWF.Control.FromHandle( parentHWnd ); 366 360 } 367 361 else … … 406 400 407 401 newWin.RenderWindow = this; 408 _window = newWin;402 _windowHandle = newWin.Handle; 409 403 410 404 WindowEventMonitor.Instance.RegisterWindow( this ); 405 411 406 } 412 407 else 413 408 { 414 _window = externalHWnd;409 _windowHandle = externalHWnd; 415 410 _isExternal = true; 416 411 } 412 #endif 417 413 418 414 // set the params of the window … … 428 424 CreateXnaResources(); 429 425 430 _window.Show(); 426 #if !(XBOX || XBOX360 || SILVERLIGHT) 427 (SWF.Control.FromHandle( _windowHandle )).Show(); 428 #endif 431 429 432 430 IsActive = true; … … 464 462 this._xnapp.BackBufferCount = _vSync ? 2 : 1; 465 463 this._xnapp.EnableAutoDepthStencil = isDepthBuffered; 466 this._xnapp.DeviceWindowHandle = _window .Handle;464 this._xnapp.DeviceWindowHandle = _windowHandle; 467 465 this._xnapp.BackBufferHeight = Height; 468 466 this._xnapp.BackBufferWidth = Width; … … 604 602 { 605 603 // hardware vertex processing 606 device = new XFG.GraphicsDevice( adapterToUse, devType, _window .Handle, this._xnapp );604 device = new XFG.GraphicsDevice( adapterToUse, devType, _windowHandle, this._xnapp ); 607 605 } 608 606 catch ( Exception ) … … 612 610 // Try a second time, may fail the first time due to back buffer count, 613 611 // which will be corrected down to 1 by the runtime 614 device = new XFG.GraphicsDevice( adapterToUse, devType, _window .Handle, this._xnapp );612 device = new XFG.GraphicsDevice( adapterToUse, devType, _windowHandle, this._xnapp ); 615 613 } 616 614 catch ( Exception ) … … 619 617 { 620 618 // doh, how bout mixed vertex processing 621 device = new XFG.GraphicsDevice( adapterToUse, devType, _window .Handle, this._xnapp );619 device = new XFG.GraphicsDevice( adapterToUse, devType, _windowHandle, this._xnapp ); 622 620 } 623 621 catch ( Exception ) … … 627 625 // what the...ok, how bout software vertex procssing. if this fails, then I don't even know how they are seeing 628 626 // anything at all since they obviously don't have a video card installed 629 device = new XFG.GraphicsDevice( adapterToUse, devType, _window .Handle, this._xnapp );627 device = new XFG.GraphicsDevice( adapterToUse, devType, _windowHandle, this._xnapp ); 630 628 } 631 629 catch ( Exception ex ) … … 663 661 664 662 case "WINDOW": 665 return this._window .Handle;663 return this._windowHandle; 666 664 667 665 case "XNAZBUFFER": … … 818 816 819 817 } 818 #if !( XBOX || XBOX360 ) 820 819 else 821 820 { … … 829 828 point.X = (int)srcRect.Left; 830 829 point.Y = (int)srcRect.Top; 831 point = _window.PointToScreen( point ); 830 SWF.Control control = SWF.Control.FromHandle( _windowHandle ); 831 point = control.PointToScreen( point ); 832 832 srcRect.Top = point.Y; 833 833 srcRect.Left = point.X; … … 837 837 surface.GetData<byte>( 0, XnaHelper.ToRectangle( srcRect ), data, 0, 255); 838 838 } 839 #endif 839 840 } 840 841 else -
trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaTexture.cs
r1813 r1901 491 491 #if (XBOX || XBOX360 || SILVERLIGHT) 492 492 Axiom.RenderSystems.Xna.Content.AxiomContentManager acm = new Axiom.RenderSystems.Xna.Content.AxiomContentManager( (XnaRenderSystem)Root.Instance.RenderSystem, ""); 493 normTexture = acm.Load<XFG.Texture2D>( name );494 texture =normTexture;493 _normTexture = acm.Load<XFG.Texture2D>( Name ); 494 _texture = _normTexture; 495 495 internalResourcesCreated = true; 496 496 #else … … 548 548 #if (XBOX || XBOX360 || SILVERLIGHT) 549 549 AxiomContentManager acm = new AxiomContentManager( (XnaRenderSystem)Root.Instance.RenderSystem, ""); 550 cubeTexture = acm.Load<XFG.TextureCube>( name );551 texture =cubeTexture;550 _cubeTexture = acm.Load<XFG.TextureCube>( Name ); 551 _texture = _cubeTexture; 552 552 internalResourcesCreated = true; 553 553 #else … … 590 590 #if (XBOX || XBOX360 || SILVERLIGHT) 591 591 AxiomContentManager acm = new AxiomContentManager( (XnaRenderSystem)Root.Instance.RenderSystem, ""); 592 volumeTexture = acm.Load<XFG.Texture3D>( name );593 texture =volumeTexture;592 _volumeTexture = acm.Load<XFG.Texture3D>( Name ); 593 _texture = _volumeTexture; 594 594 internalResourcesCreated = true; 595 595 #else -
trunk/Projects/Axiom/SceneManagers/Bsp/BspSceneManager.cs
r1881 r1901 37 37 using System.IO; 38 38 using System.Collections; 39 using System.Collections.Generic; 40 using System.Data; 39 41 using System.Runtime.InteropServices; 40 42 using System.Diagnostics; 41 43 44 using Axiom.Collections; 42 45 using Axiom.Core; 46 using Axiom.Core.Collections; 47 using Axiom.Graphics; 43 48 using Axiom.Math; 44 using Axiom.Graphics;45 using Axiom.Collections;46 49 using Axiom.Math.Collections; 47 using System.Collections.Generic; 50 48 51 #endregion Namespace Declarations 49 52 50 53 namespace Axiom.SceneManagers.Bsp 51 54 { 52 using System.Data;53 using Axiom.Core.Collections;54 55 55 /// <summary> 56 56 /// Specialisation of the SceneManager class to deal with indoor scenes based on a BSP tree. -
trunk/Projects/Axiom/Tools/Axiom.RenderSystems.Xna.Content/AxiomContentManager.cs
r1548 r1901 25 25 if ( System.IO.Path.GetExtension( assetName ) != "xnb" ) 26 26 assetName = System.IO.Path.GetFileNameWithoutExtension( assetName ) + ".xnb"; 27 return TextureManager.Instance.FindResourceData( assetName );27 return ResourceGroupManager.Instance.OpenResource( assetName ); 28 28 } 29 29 } -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CameraTrack.csproj
r1563 r1901 140 140 </ItemGroup> 141 141 <ItemGroup> 142 <ProjectReference Include="..\..\..\..\Axiom\ Source\Engine\Axiom.Xbox.csproj">142 <ProjectReference Include="..\..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 143 143 <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 144 144 <Name>Axiom.Xbox</Name> 145 145 </ProjectReference> 146 <ProjectReference Include="..\..\..\..\Axiom\ Source\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj">146 <ProjectReference Include="..\..\..\..\Axiom\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 147 147 <Project>{0CC816A6-62C5-416B-BFF5-DBB924A389E9}</Project> 148 148 <Name>Axiom.RenderSystems.Xna.Xbox</Name> 149 149 </ProjectReference> 150 <ProjectReference Include="..\..\..\..\Axiom\ Source\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.Xbox.csproj">150 <ProjectReference Include="..\..\..\..\Axiom\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.Xbox.csproj"> 151 151 <Project>{40F18D53-5A6E-48AE-A767-5F5AAE891837}</Project> 152 152 <Name>Axiom.RenderSystems.Xna.Content.Xbox</Name> -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CellShading.csproj
r1563 r1901 137 137 </ItemGroup> 138 138 <ItemGroup> 139 <ProjectReference Include="..\..\..\..\Axiom\ Source\Engine\Axiom.Xbox.csproj">139 <ProjectReference Include="..\..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 140 140 <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 141 141 <Name>Axiom.Xbox</Name> 142 142 </ProjectReference> 143 <ProjectReference Include="..\..\..\..\Axiom\ Source\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj">143 <ProjectReference Include="..\..\..\..\Axiom\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 144 144 <Project>{0CC816A6-62C5-416B-BFF5-DBB924A389E9}</Project> 145 145 <Name>Axiom.RenderSystems.Xna.Xbox</Name> 146 146 </ProjectReference> 147 <ProjectReference Include="..\..\..\..\Axiom\ Source\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.Xbox.csproj">147 <ProjectReference Include="..\..\..\..\Axiom\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.Xbox.csproj"> 148 148 <Project>{40F18D53-5A6E-48AE-A767-5F5AAE891837}</Project> 149 149 <Name>Axiom.RenderSystems.Xna.Content.Xbox</Name> -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CameraTrack.contentproj
r1548 r1901 36 36 </ItemGroup> 37 37 <ItemGroup> 38 <ProjectReference Include="..\..\..\..\..\Axiom\ Source\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj">38 <ProjectReference Include="..\..\..\..\..\Axiom\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj"> 39 39 <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 40 40 <Name>Axiom.RenderSystems.Xna.Content.x86</Name> -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CellShading.contentproj
r1548 r1901 36 36 </ItemGroup> 37 37 <ItemGroup> 38 <ProjectReference Include="..\..\..\..\..\Axiom\ Source\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj">38 <ProjectReference Include="..\..\..\..\..\Axiom\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj"> 39 39 <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 40 40 <Name>Axiom.RenderSystems.Xna.Content.x86</Name> -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.Common.contentproj
r1548 r1901 36 36 </ItemGroup> 37 37 <ItemGroup> 38 <ProjectReference Include="..\..\..\..\..\Axiom\ Source\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj">38 <ProjectReference Include="..\..\..\..\..\Axiom\Tools\Axiom.RenderSystems.Xna.Content\Axiom.RenderSystems.Xna.Content.x86.csproj"> 39 39 <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 40 40 <Name>Axiom.RenderSystems.Xna.Content.x86</Name> -
trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Game.cs
r1663 r1901 38 38 { 39 39 // instantiate the Root singleton 40 engine = new Root( CONFIG_FILE,"AxiomDemos.log" );40 engine = new Root( "AxiomDemos.log" ); 41 41 42 42 #if (XBOX || XBOX360 ) 43 ( new Axiom.RenderSystems.Xna.Plugin() ). Start();44 #endif 45 Root.Instance.RenderSystem = Root.Instance.RenderSystems[ 0];43 ( new Axiom.RenderSystems.Xna.Plugin() ).Initialize(); 44 #endif 45 Root.Instance.RenderSystem = Root.Instance.RenderSystems[ "XNA" ]; 46 46 _setupResources(); 47 47 48 engine.FrameStarted += new FrameEvent( engine_FrameStarted );48 engine.FrameStarted += engine_FrameStarted; 49 49 50 50 return true; … … 54 54 { 55 55 Axiom.Overlays.OverlayManager.Instance.GetByName( "Core/XnaOverlay" ).Show(); 56 engine.FrameStarted -= new FrameEvent( engine_FrameStarted );56 engine.FrameStarted -= engine_FrameStarted; 57 57 } 58 58 … … 62 62 private void _setupResources() 63 63 { 64 Resource Manager.AddCommonArchive( "Content\\Fonts", "Folder" );64 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Fonts", "Folder" ); 65 65 #if !( XBOX || XBOX360 ) 66 Resource Manager.AddCommonArchive( "Content\\Icons", "Folder" );67 Resource Manager.AddCommonArchive( "Content\\BrowserImages", "Folder" );68 Resource Manager.AddCommonArchive( "Content\\XNA.Materials\\x86\\scripts", "Folder" );69 Resource Manager.AddCommonArchive( "Content\\XNA.Materials\\x86\\programs", "Folder" );70 //Resource Manager.AddCommonArchive( "Content\\XNA.Materials\\x86\\textures", "Folder" );71 72 Resource Manager.AddCommonArchive( "Content\\XNA.Materials\\x86\\Fresnel.zip", "ZipFile" );66 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Icons", "Folder" ); 67 ResourceGroupManager.Instance.AddResourceLocation( "Content\\BrowserImages", "Folder" ); 68 ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\x86\\scripts", "Folder" ); 69 ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\x86\\programs", "Folder" ); 70 //ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\x86\\textures", "Folder" ); 71 72 ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\x86\\Fresnel.zip", "ZipFile" ); 73 73 #else 74 74 //ResourceManager.AddCommonArchive( "Content\\XNA.Materials\\XBox", "Folder" ); 75 Resource Manager.AddCommonArchive("Content\\XNA.Materials\\XBox\\scripts", "Folder");76 Resource Manager.AddCommonArchive("Content\\XNA.Materials\\XBox\\programs", "Folder");77 Resource Manager.AddCommonArchive("Content\\XNA.Materials\\XBox\\Textures", "Folder");78 #endif 79 Resource Manager.AddCommonArchive( "Content\\Meshes", "Folder" );80 Resource Manager.AddCommonArchive( "Content\\Overlays", "Folder" );81 Resource Manager.AddCommonArchive( "Content\\Skeletons", "Folder" );82 Resource Manager.AddCommonArchive( "Content\\Textures", "Folder" );75 ResourceGroupManager.Instance.AddResourceLocation("Content\\XNA.Materials\\XBox\\scripts", "Folder"); 76 ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\XBox\\programs", "Folder" ); 77 ResourceGroupManager.Instance.AddResourceLocation( "Content\\XNA.Materials\\XBox\\Textures", "Folder" ); 78 #endif 79 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Meshes", "Folder" ); 80 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Overlays", "Folder" ); 81 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Skeletons", "Folder" ); 82 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Textures", "Folder" ); 83 83 #if !( XBOX || XBOX360 ) 84 Resource Manager.AddCommonArchive( "Content\\Textures\\Skyboxes.zip", "ZipFile" );85 Resource Manager.AddCommonArchive( "Content\\Archives\\chiropteraDM.zip", "ZipFile" );86 Resource Manager.AddCommonArchive("Content\\Archives\\Water.zip", "ZipFile");84 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Textures\\Skyboxes.zip", "ZipFile" ); 85 ResourceGroupManager.Instance.AddResourceLocation( "Content\\Archives\\chiropteraDM.zip", "ZipFile" ); 86 ResourceGroupManager.Instance.AddResourceLocation("Content\\Archives\\Water.zip", "ZipFile"); 87 87 #endif 88 88 -
trunk/Projects/AxiomDemos/Source/Demos/Axiom.Demos.Xbox.csproj
r1663 r1901 64 64 <ItemGroup> 65 65 <Compile Include="BezierPatch.cs" /> 66 <Compile Include="BSP.cs" />67 66 <Compile Include="CameraTrack.cs" /> 68 67 <Compile Include="CelShading.cs" /> … … 154 153 </ItemGroup> 155 154 <ItemGroup> 156 <ProjectReference Include="..\..\..\Axiom\ Source\Engine\Axiom.Xbox.csproj">155 <ProjectReference Include="..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 157 156 <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 158 157 <Name>Axiom.Xbox</Name>
