Welcome, Guest! Log In | Create Account

Changeset 1901

Show
Ignore:
Timestamp:
11/18/09 18:55:23 (3 months ago)
Author:
borrillis
Message:

- Axiom on Xbox

  • more changes to make everything compile + added common demo project + added launcher for CameraTrack? demo
Location:
trunk/Projects
Files:
16 modified

Legend:

Unmodified
Added
Removed
  • trunk/Projects/Axiom.Xbox.2008.sln

    r1756 r1901  
    3333EndProject 
    3434Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Axiom.Demos.Xbox", "AxiomDemos\Source\Demos\Axiom.Demos.Xbox.csproj", "{EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4}" 
    35 EndProject 
    36 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}" 
    3735EndProject 
    3836Project("{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}" 
     
    119117                {EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4}.Release|Xbox 360.ActiveCfg = Release|Xbox 360 
    120118                {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 360 
    122                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.ActiveCfg = Debug|Xbox 360 
    123                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.Build.0 = Debug|Xbox 360 
    124                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Mixed Platforms.Deploy.0 = Debug|Xbox 360 
    125                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|x86.ActiveCfg = Debug|Xbox 360 
    126                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Xbox 360.ActiveCfg = Debug|Xbox 360 
    127                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Debug|Xbox 360.Build.0 = Debug|Xbox 360 
    128                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Any CPU.ActiveCfg = Release|Xbox 360 
    129                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.ActiveCfg = Release|Xbox 360 
    130                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.Build.0 = Release|Xbox 360 
    131                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Mixed Platforms.Deploy.0 = Release|Xbox 360 
    132                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|x86.ActiveCfg = Release|Xbox 360 
    133                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.ActiveCfg = Release|Xbox 360 
    134                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.Build.0 = Release|Xbox 360 
    135                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24}.Release|Xbox 360.Deploy.0 = Release|Xbox 360 
    136119                {D00F8786-1360-4EB3-8392-B3C3315510E1}.Debug|Any CPU.ActiveCfg = Debug|Xbox 360 
    137120                {D00F8786-1360-4EB3-8392-B3C3315510E1}.Debug|Mixed Platforms.ActiveCfg = Debug|Xbox 360 
     
    200183                {BAA6AE8A-B259-4883-9805-CE538660A59A}.Release|x86.Build.0 = Release|x86 
    201184                {BAA6AE8A-B259-4883-9805-CE538660A59A}.Release|Xbox 360.ActiveCfg = Release|x86 
    202                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Any CPU.ActiveCfg = Debug|x86 
    203                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 
    204                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|x86.ActiveCfg = Debug|x86 
    205                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Debug|Xbox 360.ActiveCfg = Debug|x86 
    206                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Any CPU.ActiveCfg = Release|x86 
    207                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Mixed Platforms.ActiveCfg = Release|x86 
    208                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|x86.ActiveCfg = Release|x86 
    209                 {875935E2-A4BC-4AD9-9CF9-95A8EBC519A9}.Release|Xbox 360.ActiveCfg = Release|x86 
    210185                {EC8C6D1F-65FD-4368-9AB6-25AAA71F1326}.Debug|Any CPU.ActiveCfg = Debug|x86 
    211186                {EC8C6D1F-65FD-4368-9AB6-25AAA71F1326}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 
     
    237212                {BAA6AE8A-B259-4883-9805-CE538660A59A} = {1EAB961C-47EC-4015-B61E-E672AE1C82A1} 
    238213                {EBF98B3B-3D1A-45EC-B2C9-0AC31DCE3EE4} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9} 
    239                 {865C5AD6-E8C9-46E6-B530-A9E34BE98B24} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9} 
    240214                {D00F8786-1360-4EB3-8392-B3C3315510E1} = {2A0C6270-CDA1-46F8-A4D8-09C005ECF3F9} 
    241215                {0CC816A6-62C5-416B-BFF5-DBB924A389E9} = {FC473D51-36A2-4437-BC06-92A8E92374B7} 
  • trunk/Projects/Axiom/RenderSystems/XNA/Axiom.RenderSystems.Xna.Xbox.csproj

    r1663 r1901  
    8585    <Compile Include="Source\XnaHardwareIndexBuffer.cs" /> 
    8686    <Compile Include="Source\XnaHardwareOcclusionQuery.cs" /> 
     87    <Compile Include="Source\XnaHardwarePixelBuffer.cs" /> 
    8788    <Compile Include="Source\XnaHardwareVertexBuffer.cs" /> 
    8889    <Compile Include="Source\XnaHelper.cs" /> 
  • trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaHardwarePixelBuffer.cs

    r1895 r1901  
    3636 
    3737using System; 
    38 using System.Drawing; 
    3938using System.Diagnostics; 
    4039using System.Collections; 
  • trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaHelper.cs

    r1814 r1901  
    851851            public static Rectangle ToRectangle( Core.Rectangle rectangle ) 
    852852            { 
    853                 Rectangle retVal; 
     853                Rectangle retVal = new Rectangle(); 
    854854                retVal.X = (int)rectangle.Left; 
    855855                retVal.Y = (int)rectangle.Top; 
     
    861861        public static Rectangle ToRectangle( BasicBox rectangle ) 
    862862        { 
    863             Rectangle retVal; 
     863            Rectangle retVal = new Rectangle(); 
    864864            retVal.X = (int)rectangle.Left; 
    865865            retVal.Y = (int)rectangle.Top; 
  • trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaRenderSystem.cs

    r1895 r1901  
    14701470            LogManager.Instance.Write( "[XNA] : Subsystem Initializing" ); 
    14711471 
     1472#if !( XBOX || XBOX360 ) 
    14721473            WindowEventMonitor.Instance.MessagePump = Win32MessageHandling.MessagePump; 
    1473  
     1474#endif 
    14741475            _activeDriver = XnaHelper.GetDriverInfo()[ ConfigOptions[ "Rendering Device" ].Value ]; 
    14751476            if ( _activeDriver == null ) 
  • trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaRenderWindow.cs

    r1895 r1901  
    4848using XNA = Microsoft.Xna.Framework; 
    4949using XFG = Microsoft.Xna.Framework.Graphics; 
     50using Axiom.Graphics.Collections; 
    5051#if !(XBOX || XBOX360 || SILVERLIGHT) 
    5152using SWF = System.Windows.Forms; 
     
    6465                #region Fields and Properties 
    6566 
    66         private SWF.Control _window;                    // Win32 Window handle 
    67         private bool _isExternal;                       // window not created by Ogre 
     67        private IntPtr _windowHandle;                   // Win32 Window handle 
     68        private bool _isExternal;                       // window not created by Axiom 
    6869        private bool _sizing; 
    6970        private bool _isSwapChain;                      // Is this a secondary window? 
     
    9697            get 
    9798            { 
    98                 if ( _window != null ) 
    99                 { 
     99#if !(XBOX || XBOX360 || SILVERLIGHT) 
     100                if ( _windowHandle != null ) 
     101                { 
     102                    SWF.Control control = SWF.Control.FromHandle( _windowHandle ); 
    100103                    if ( _isExternal ) 
    101104                    { 
    102                         if ( _window is SWF.Form ) 
     105                        if ( control is SWF.Form ) 
    103106                        { 
    104                             if ( ( (SWF.Form)_window ).WindowState == SWF.FormWindowState.Minimized ) 
     107                            if ( ( (SWF.Form)control ).WindowState == SWF.FormWindowState.Minimized ) 
    105108                            { 
    106109                                return false; 
    107110                            } 
    108111                        } 
    109                         else if ( _window is SWF.PictureBox ) 
     112                        else if ( control is SWF.PictureBox ) 
    110113                        { 
    111                             SWF.Control parent = _window.Parent; 
     114                            SWF.Control parent = control.Parent; 
    112115                            while ( !( parent is SWF.Form ) ) 
    113116                                parent = parent.Parent; 
     
    121124                    else 
    122125                    { 
    123                         if ( ( (SWF.Form)_window ).WindowState == SWF.FormWindowState.Minimized ) 
     126                        if ( ( (SWF.Form)control ).WindowState == SWF.FormWindowState.Minimized ) 
    124127                        { 
    125128                            return false; 
     
    129132                else 
    130133                    return false; 
    131  
     134#endif 
    132135                return true; 
    133136            } 
     
    211214        public override void Create( string name, int width, int height, bool fullScreen, Axiom.Collections.NamedParameterList miscParams ) 
    212215        { 
    213             SWF.Control parentHWnd = null; 
    214             SWF.Control externalHWnd = null; 
     216            IntPtr parentHWnd = IntPtr.Zero; 
     217            IntPtr externalHWnd = IntPtr.Zero; 
    215218            String title = name; 
    216219            int colourDepth = 32; 
     
    246249                } 
    247250 
     251#if !(XBOX || XBOX360 || SILVERLIGHT) 
    248252                // parentWindowHandle           -> parentHWnd 
    249253                if ( miscParams.ContainsKey( "parentWindowHandle" ) ) 
    250254                { 
    251255                    object handle = miscParams[ "parentWindowHandle" ]; 
    252                     IntPtr ptr = IntPtr.Zero; 
    253256                    if ( handle.GetType() == typeof( IntPtr ) ) 
    254257                    { 
    255                         ptr = (IntPtr)handle; 
     258                        parentHWnd = (IntPtr)handle; 
    256259                    } 
    257260                    else if ( handle.GetType() == typeof( System.Int32 ) ) 
    258261                    { 
    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                    } 
    263264                } 
    264265 
     
    267268                { 
    268269                    object handle = miscParams[ "externalWindowHandle" ]; 
    269                     IntPtr ptr = IntPtr.Zero; 
    270270                    if ( handle.GetType() == typeof( IntPtr ) ) 
    271271                    { 
    272                         ptr = (IntPtr)handle; 
     272                        externalHWnd = (IntPtr)handle; 
    273273                    } 
    274274                    else if ( handle.GetType() == typeof( System.Int32 ) ) 
    275275                    { 
    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 
    286280                // vsync        [parseBool] 
    287281                if ( miscParams.ContainsKey( "vsync" ) ) 
     
    339333 
    340334            } 
    341  
    342             if ( _window != null ) 
     335#if !(XBOX || XBOX360 || SILVERLIGHT) 
     336            if ( _windowHandle != null ) 
    343337                Dispose(); 
    344338 
    345             if ( externalHWnd == null ) 
     339            if ( externalHWnd == IntPtr.Zero ) 
    346340            { 
    347341                Width = width; 
     
    361355                { 
    362356                    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 ); 
    366360                    } 
    367361                    else 
     
    406400 
    407401                newWin.RenderWindow = this; 
    408                 _window = newWin; 
     402                _windowHandle = newWin.Handle; 
    409403 
    410404                WindowEventMonitor.Instance.RegisterWindow( this ); 
     405 
    411406            } 
    412407            else 
    413408            { 
    414                 _window = externalHWnd; 
     409                _windowHandle = externalHWnd; 
    415410                _isExternal = true; 
    416411            } 
     412#endif 
    417413 
    418414            // set the params of the window 
     
    428424            CreateXnaResources(); 
    429425 
    430             _window.Show(); 
     426#if !(XBOX || XBOX360 || SILVERLIGHT) 
     427            (SWF.Control.FromHandle( _windowHandle )).Show(); 
     428#endif 
    431429 
    432430            IsActive = true; 
     
    464462            this._xnapp.BackBufferCount = _vSync ? 2 : 1; 
    465463            this._xnapp.EnableAutoDepthStencil = isDepthBuffered; 
    466             this._xnapp.DeviceWindowHandle = _window.Handle; 
     464            this._xnapp.DeviceWindowHandle = _windowHandle; 
    467465            this._xnapp.BackBufferHeight = Height; 
    468466            this._xnapp.BackBufferWidth = Width; 
     
    604602                    { 
    605603                        // hardware vertex processing 
    606                         device = new XFG.GraphicsDevice( adapterToUse, devType, _window.Handle, this._xnapp ); 
     604                        device = new XFG.GraphicsDevice( adapterToUse, devType, _windowHandle, this._xnapp ); 
    607605                    } 
    608606                    catch ( Exception ) 
     
    612610                            // Try a second time, may fail the first time due to back buffer count, 
    613611                            // 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 ); 
    615613                        } 
    616614                        catch ( Exception ) 
     
    619617                            { 
    620618                                // 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 ); 
    622620                            } 
    623621                            catch ( Exception ) 
     
    627625                                    // what the...ok, how bout software vertex procssing.  if this fails, then I don't even know how they are seeing 
    628626                                    // 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 ); 
    630628                                } 
    631629                                catch ( Exception ex ) 
     
    663661 
    664662                    case "WINDOW": 
    665                         return this._window.Handle; 
     663                        return this._windowHandle; 
    666664 
    667665                    case "XNAZBUFFER": 
     
    818816 
    819817                } 
     818#if !( XBOX || XBOX360 ) 
    820819                else 
    821820                { 
     
    829828                    point.X = (int)srcRect.Left; 
    830829                    point.Y = (int)srcRect.Top; 
    831                     point = _window.PointToScreen( point ); 
     830                    SWF.Control control = SWF.Control.FromHandle( _windowHandle ); 
     831                    point = control.PointToScreen( point ); 
    832832                    srcRect.Top = point.Y; 
    833833                    srcRect.Left = point.X; 
     
    837837                    surface.GetData<byte>( 0, XnaHelper.ToRectangle( srcRect ), data, 0, 255); 
    838838                } 
     839#endif 
    839840            } 
    840841            else 
  • trunk/Projects/Axiom/RenderSystems/XNA/Source/XnaTexture.cs

    r1813 r1901  
    491491#if (XBOX || XBOX360 || SILVERLIGHT) 
    492492            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; 
    495495            internalResourcesCreated = true; 
    496496#else 
     
    548548#if (XBOX || XBOX360 || SILVERLIGHT) 
    549549            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; 
    552552            internalResourcesCreated = true; 
    553553#else 
     
    590590#if (XBOX || XBOX360 || SILVERLIGHT) 
    591591            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; 
    594594            internalResourcesCreated = true; 
    595595#else 
  • trunk/Projects/Axiom/SceneManagers/Bsp/BspSceneManager.cs

    r1881 r1901  
    3737using System.IO; 
    3838using System.Collections; 
     39using System.Collections.Generic; 
     40using System.Data; 
    3941using System.Runtime.InteropServices; 
    4042using System.Diagnostics; 
    4143 
     44using Axiom.Collections; 
    4245using Axiom.Core; 
     46using Axiom.Core.Collections; 
     47using Axiom.Graphics; 
    4348using Axiom.Math; 
    44 using Axiom.Graphics; 
    45 using Axiom.Collections; 
    4649using Axiom.Math.Collections; 
    47 using System.Collections.Generic; 
     50 
    4851#endregion Namespace Declarations 
    4952 
    5053namespace Axiom.SceneManagers.Bsp 
    5154{ 
    52     using System.Data; 
    53     using Axiom.Core.Collections; 
    54  
    5555    /// <summary> 
    5656    ///         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  
    2525            if ( System.IO.Path.GetExtension( assetName ) != "xnb" ) 
    2626                assetName = System.IO.Path.GetFileNameWithoutExtension( assetName ) + ".xnb"; 
    27             return TextureManager.Instance.FindResourceData( assetName ); 
     27            return ResourceGroupManager.Instance.OpenResource( assetName ); 
    2828        } 
    2929    } 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CameraTrack.csproj

    r1563 r1901  
    140140  </ItemGroup> 
    141141  <ItemGroup> 
    142     <ProjectReference Include="..\..\..\..\Axiom\Source\Engine\Axiom.Xbox.csproj"> 
     142    <ProjectReference Include="..\..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 
    143143      <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 
    144144      <Name>Axiom.Xbox</Name> 
    145145    </ProjectReference> 
    146     <ProjectReference Include="..\..\..\..\Axiom\Source\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 
     146    <ProjectReference Include="..\..\..\..\Axiom\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 
    147147      <Project>{0CC816A6-62C5-416B-BFF5-DBB924A389E9}</Project> 
    148148      <Name>Axiom.RenderSystems.Xna.Xbox</Name> 
    149149    </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"> 
    151151      <Project>{40F18D53-5A6E-48AE-A767-5F5AAE891837}</Project> 
    152152      <Name>Axiom.RenderSystems.Xna.Content.Xbox</Name> 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Axiom.Demos.Xbox.CellShading.csproj

    r1563 r1901  
    137137  </ItemGroup> 
    138138  <ItemGroup> 
    139     <ProjectReference Include="..\..\..\..\Axiom\Source\Engine\Axiom.Xbox.csproj"> 
     139    <ProjectReference Include="..\..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 
    140140      <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 
    141141      <Name>Axiom.Xbox</Name> 
    142142    </ProjectReference> 
    143     <ProjectReference Include="..\..\..\..\Axiom\Source\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 
     143    <ProjectReference Include="..\..\..\..\Axiom\RenderSystems\XNA\Axiom.RenderSystems.Xna.Xbox.csproj"> 
    144144      <Project>{0CC816A6-62C5-416B-BFF5-DBB924A389E9}</Project> 
    145145      <Name>Axiom.RenderSystems.Xna.Xbox</Name> 
    146146    </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"> 
    148148      <Project>{40F18D53-5A6E-48AE-A767-5F5AAE891837}</Project> 
    149149      <Name>Axiom.RenderSystems.Xna.Content.Xbox</Name> 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CameraTrack.contentproj

    r1548 r1901  
    3636  </ItemGroup> 
    3737  <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"> 
    3939      <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 
    4040      <Name>Axiom.RenderSystems.Xna.Content.x86</Name> 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.CellShading.contentproj

    r1548 r1901  
    3636  </ItemGroup> 
    3737  <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"> 
    3939      <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 
    4040      <Name>Axiom.RenderSystems.Xna.Content.x86</Name> 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Content/Axiom.Content.Common.contentproj

    r1548 r1901  
    3636  </ItemGroup> 
    3737  <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"> 
    3939      <Project>{6E5E6221-0235-49C9-9273-449F5F0E8EF6}</Project> 
    4040      <Name>Axiom.RenderSystems.Xna.Content.x86</Name> 
  • trunk/Projects/AxiomDemos/Source/Browser/Axiom.Demos.Browser.Xna/Game.cs

    r1663 r1901  
    3838        { 
    3939            // instantiate the Root singleton 
    40             engine = new Root( CONFIG_FILE, "AxiomDemos.log" ); 
     40            engine = new Root( "AxiomDemos.log" ); 
    4141 
    4242#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" ]; 
    4646            _setupResources(); 
    4747 
    48             engine.FrameStarted += new FrameEvent( engine_FrameStarted ); 
     48            engine.FrameStarted += engine_FrameStarted; 
    4949 
    5050            return true; 
     
    5454        { 
    5555            Axiom.Overlays.OverlayManager.Instance.GetByName( "Core/XnaOverlay" ).Show(); 
    56             engine.FrameStarted -= new FrameEvent( engine_FrameStarted ); 
     56            engine.FrameStarted -= engine_FrameStarted; 
    5757        } 
    5858 
     
    6262        private void _setupResources() 
    6363        { 
    64             ResourceManager.AddCommonArchive( "Content\\Fonts", "Folder" ); 
     64            ResourceGroupManager.Instance.AddResourceLocation( "Content\\Fonts", "Folder" ); 
    6565#if !( XBOX || XBOX360 ) 
    66             ResourceManager.AddCommonArchive( "Content\\Icons", "Folder" ); 
    67             ResourceManager.AddCommonArchive( "Content\\BrowserImages", "Folder" ); 
    68             ResourceManager.AddCommonArchive( "Content\\XNA.Materials\\x86\\scripts", "Folder" ); 
    69             ResourceManager.AddCommonArchive( "Content\\XNA.Materials\\x86\\programs", "Folder" ); 
    70             //ResourceManager.AddCommonArchive( "Content\\XNA.Materials\\x86\\textures", "Folder" ); 
    71  
    72             ResourceManager.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" ); 
    7373#else 
    7474            //ResourceManager.AddCommonArchive( "Content\\XNA.Materials\\XBox", "Folder" ); 
    75             ResourceManager.AddCommonArchive("Content\\XNA.Materials\\XBox\\scripts", "Folder"); 
    76             ResourceManager.AddCommonArchive("Content\\XNA.Materials\\XBox\\programs", "Folder"); 
    77             ResourceManager.AddCommonArchive("Content\\XNA.Materials\\XBox\\Textures", "Folder"); 
    78 #endif 
    79             ResourceManager.AddCommonArchive( "Content\\Meshes", "Folder" ); 
    80             ResourceManager.AddCommonArchive( "Content\\Overlays", "Folder" ); 
    81             ResourceManager.AddCommonArchive( "Content\\Skeletons", "Folder" ); 
    82             ResourceManager.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" ); 
    8383#if !( XBOX || XBOX360 ) 
    84             ResourceManager.AddCommonArchive( "Content\\Textures\\Skyboxes.zip", "ZipFile" ); 
    85             ResourceManager.AddCommonArchive( "Content\\Archives\\chiropteraDM.zip", "ZipFile" ); 
    86             ResourceManager.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"); 
    8787#endif 
    8888 
  • trunk/Projects/AxiomDemos/Source/Demos/Axiom.Demos.Xbox.csproj

    r1663 r1901  
    6464  <ItemGroup> 
    6565    <Compile Include="BezierPatch.cs" /> 
    66     <Compile Include="BSP.cs" /> 
    6766    <Compile Include="CameraTrack.cs" /> 
    6867    <Compile Include="CelShading.cs" /> 
     
    154153  </ItemGroup> 
    155154  <ItemGroup> 
    156     <ProjectReference Include="..\..\..\Axiom\Source\Engine\Axiom.Xbox.csproj"> 
     155    <ProjectReference Include="..\..\..\Axiom\Engine\Axiom.Xbox.csproj"> 
    157156      <Project>{F9D4E0D4-0062-4476-A041-21C3CC844846}</Project> 
    158157      <Name>Axiom.Xbox</Name>