63 Commits

Author SHA1 Message Date
Konstantin Koch
f081f8632a two commits were missing, both by KorsarNek:
"Removed the SupportedPlatformsImpl classes and replaced them with a new SupportedPlatforms attribute on the assembly level.
Removed a few class constructors which could cause problems when loading a game.
Made ResetElapsedTime in the game class reset to 0 instead of TimeSpan.MinValue.
Removed the restriction in the InputDeviceFactory for which InputDevices are supported.
Added a Logger for Metro which works with the current Logger implementation.
Changed that when a platform is recognized that is higher than Windows 8, it gets treated like Windows 8, not like Windows 7.
Due to the SupportedPlatforms change, the assembly loader is now faster in finding out which assemblies contains addIns. For not Metro system, it's also added that a warning gets written if an AddIn references a different ANX version than that of the running assembly.
OpenGL and DirectX have been updated to the newest versions.
XAudio system uses now the same SharpDX version as all the other systems.
ParameterBuffer for WindowsMetro gets now correctly created by considering the size constraints for constant buffers.
Fixed an erroneous finalizer in the xaudio system.
Made the metro projects convert to Windows 8.1, as Windows 8.0 is not supported by the newer SharpDX versions. It's now also necessary to use at least Visual Studio 2013 to build the Metro versions.
Made the samples work again on Windows."

"Fixed the creation of the swap chain for windows metro and removed the dependency of the Metro Rendersystem onto the Metro Platformsytem.
All occurrences of WindowHandles have been replaced with a custom WindowHandle type which should work out of the box in most cases, but does still represent a breaking change to XNA.
The ProjectConverter for Metro was adjusted so that with just changing the way the application is initialized, most projects that worked with ANX before should now work under win rt. The sample SimpleNoContent does now work out of the box for win rt, after a project conversion.
The application name for win rt apps is now a guid, the display name stayed the same though. That's to be more compliant with the way win rt apps are normally created.
The default namespace and namespace of the classes for the Sample "SimpleNoContent" is renamed from "SimpleModernUI" to "SimpleNoContent".
With the new way win rt apps are initialized for ANX, it's necessary to first create the WindowsGameHost for WinRT with a handler how to create the game instance and give that to the CoreApplication object to run it.
Also took care of a few annoying bugs when working with win rt and ANX where no InputDevices could be created on the first frame (Issue #1164 ) and that it wasn't possible to use the localfolder of the application on the first update and all the other stuff for which an instance of the Application class was necessary."
2015-03-29 13:48:33 +02:00
Konstantin Koch
a7fb23b599 Implemented GetData and SetData for Metro Rendersystem too. Together with commit 32081, this implements patch 15996. 2015-03-15 01:13:39 +01:00
Glatzemann
f4ad054470 fixed some minor issues caused by the update to SharpDX 2.4.1 2015-03-15 01:12:46 +01:00
Glatzemann
99216ca254 - Fixed some bugs in build system
- Build system optimizations
- Extended ProjectConverter: DX and SharpDX assemblies are now removed from linux projects to prevent errors
- Fixed a bunch of compiler warnings
- Removed DX11MetroShaderGenerator assembly. It is now included in ANX.Framework.Content.Pipeline
- Removed HLSLParser assembly. It is now included in ANX.Framework.Content.Pipeline.
- Removed shader parser from GL3-RenderSystem. It is now included in ANX.Framework.Content.Pipeline.
- Removed RenderSystem dependencies from StockShaderCodeGenerator (sscg) tool
2015-03-15 01:12:04 +01:00
SND\AstrorEnales_cp
be01038e1f Fixed the DisplayMode class which was way too accessible!
Added Tests for:
- DisplayMode
- VertexElement
- VertexPositionColor (GetHashCode still fails)
- VertexPositionColorTexture (GetHashCode still fails)
- VertexPositionTexture
- VertexPositionNormalTexture
2015-03-15 01:11:49 +01:00
SND\AstrorEnales_cp
4fdad340d3 Fixed the StorageDevice and StorageContainer and native implementations 2015-03-15 01:11:40 +01:00
SND\AstrorEnales_cp
0b9acc40ee Finished the ANX.Framework side of EffectAnnotation, EffectParameter and EffectTechnique 2015-03-15 01:11:40 +01:00
SND\AstrorEnales_cp
db82358d24 - Changed access modifiers in DisplayModeCollection to match Xna signature and fixed the usage of that class
- Implemented Properties of EffectParameter
- Fixed OutOfRange behaviour in multiple collection files in graphics to match xna behaviour (which just returns null)
- Implemented some methods in collection classes
2015-03-15 01:11:38 +01:00
SND\AstrorEnales_cp
52b87d1459 Fixed some IsSupported properties for Metro and fixed the normal ANX.InputDevices.Windows.ModernUI csproj file to be "openable" under normal windows and converted it to metro 2015-03-15 01:11:28 +01:00
Glatzemann
e5ac8228ca some more build tweaking for Windows 8 2015-03-15 01:11:26 +01:00
Glatzemann
808e63f45a - some more tweaking in build script for Windows 8
- Platform no makes a difference for Windows8 and Windows8ModernUI
2015-03-15 01:11:22 +01:00
Glatzemann
188bda28a5 - added new sample "SimpleNoContent" to test some things on Windows 8 without ContentPipeline
- tweaked the build-script for better support on Windows 8
- fixed bug #1016 (with a workaround. new issue will follow)
- fixed some render system issues on Windows 8
2015-03-15 01:11:22 +01:00
Glatzemann
41061f8b12 - implemented feature #1026 ("Implement EffectParameter.Semantic")
- fixed issue #583 ("BoundingFrustum corners wrong")
2015-03-15 01:11:19 +01:00
SND\AstrorEnales_cp
18152ade3e Implemented Feature #1010 by replacing the MsBuild sln-Parsing with our own parser which
enables us to run the project converter on linux. Updated all projects via ProjectConverter.
2015-03-15 01:11:14 +01:00
Glatzemann
94e34228aa added WinRT target to the build file (this will call the metro target with ARM-CPU-Support switched on) 2015-03-15 01:11:11 +01:00
Glatzemann
a56b7042fc fixed a build issue in GraphicsDeviceWindowsMetro 2015-03-15 01:11:04 +01:00
SND\eagleeyestudios_cp
6aea2f0fc4 - Updated all Linux projects using the ProjectConverter. (-> This created the missing Linux version of GL3-Rendersystem) 2015-03-15 01:11:02 +01:00
Glatzemann
825ed2b10c - fixed a issue with DrawIndexedPrimitives in DX10, DX11 and DX11.1 RenderSystems. (part of issue #531) 2015-03-15 01:11:00 +01:00
SND\eagleeyestudios_cp
ae61d9850c Fixed some Linux Reference Issues. Linux version of GL3 system still missing 2015-03-15 01:11:00 +01:00
Glatzemann
9414d12668 - fixed DrawUserIndexPrimitives (issue #531) 2015-03-15 01:10:58 +01:00
Glatzemann
8523993cb2 - RenderSystem.Metro: fixed #1005 2015-03-15 01:10:57 +01:00
Glatzemann
eba46e6379 - some more build script tweaking for Windows 8 / Metro 2015-03-15 01:10:56 +01:00
Glatzemann
81bcc22032 - fixed a lot of issues in build script: most of metro building on Windows 8 is now working
- fixed PlatformSystem.Metro (untested)
- fixed project files of ANX.InputDevices.Windows.ModernUI
- fixed a small issue in ANX.Framework's generic PlatformSystem implementation
2015-03-15 01:10:55 +01:00
SND\AstrorEnales_cp
0251a7a2e7 Wrote the Skinned.fx shader for Dx10, Dx11 and Metro (the class however is not yet implemented) 2012-09-09 19:59:18 +00:00
SND\AstrorEnales_cp
bf14329432 - Implemented BasicEffect.fx for Dx10, Dx11 and Metro
- Started to work on a Sample to demonstrate all the BasicEffect possibilities
2012-09-09 14:31:03 +00:00
SND\AstrorEnales_cp
0ef016dc71 - Finished Dx10, Dx11 and Metro AlphaTest.fx and EnvironmentMap.fx shader
- Implemented AlphaTestEffect and EnvironmentMapEffect classes
- Added a lightmap.png and improved the DualTextureSample to show the real deal
- Removed old Metro configurations from csproj-files and converted them anew
- Added DualTextureSample to SampleCatalog.xml
- Fixed a compile error in the PsVitaGameTimer
- PsVitaConverter now removes the not available System.Net reference from projects
2012-09-09 07:55:45 +00:00
SND\AstrorEnales_cp
0fc4409e58 - Fixed the Texture2DReader to correctly fill the texture with the mipmaps
- Implemented Mipmap textures for Dx10, Dx11, GL3. Metro is implemented but has still some problems with mipmaps (probably cause of the vm)
- Added Sample dds texture
- Fixed compiler error in MetroGameTimer
2012-09-08 09:07:23 +00:00
SND\AstrorEnales_cp
e0165985b3 Even more refactorings in Dx11 and Dx10 RenderSystems and added the ANX.BaseDirectX project which unifies a lot of code from both RenderSystems and even more in the near future. 2012-09-07 09:48:45 +00:00
SND\AstrorEnales_cp
e1a2a05e88 - Implemented DualTexture.fx shader for Dx11 and Metro (Metro untested atm)
- Fixed that multiple techniques can be used in the Dx11 rendersystem
2012-09-05 20:17:34 +00:00
SND\AstrorEnales_cp
3316d46dba - Implemented some GetData methods in the Vertex and Index Buffer implementations
- Added developer, PercentageComplete and TestState attributes
- Added Event to the FrameworkDispatcher which will be used by the components that need it (audio etc.)
- Some more refactorings, regions, etc.
2012-09-04 21:36:46 +00:00
SND\AstrorEnales_cp
28f3010330 Added IOcclusionQuery interface and implemented the base OcclusionQuery class and the GL3 implementation. 2012-09-03 21:54:12 +00:00
SND\AstrorEnales_cp
2745521141 Refactored the XInput FormatConverter and unknown keys are now ignored instead of throwing NotImplementedException 2012-08-31 16:02:52 +00:00
Glatzemann
0fed6457b9 - Included ProjectConverter in samples build script. Projects are converted, but there are still issues with building sample content for the samples when using psvita or linux e.g. 2012-08-29 19:55:56 +00:00
Glatzemann
c04709e3b4 - Fixed a bug when closing the RenderWindow. Rendering wasn't stopped immediately when the window starts to close. This was a problem when using OpenGL RenderSystem because it crashed. (Thanks Kevin)
- Fixed an issue with shader language in SpriteBatch
2012-08-29 12:11:03 +00:00
Glatzemann
de0232177e XNAEXT: added a ConstantBuffer class and interfaces to the RenderSystem. Everything compiles fine but the RenderSystem does not create unmanaged buffers because it needs to be implemented. 2012-08-29 10:48:21 +00:00
SND\AstrorEnales_cp
734679616b - Added ILRepack
- Refactored the AddIn-System to allow merged assemblies (for metro, android, etc. later on)
- Added empty PsVita Sound and Media System modules
- Fixed 2 small missing excludes in the build script
- Cleaned the License headers in the shader files
- Some other refactorings
2012-08-25 17:27:45 +00:00
SND\AstrorEnales_cp
7ea3cef569 - Fixed the rendering on Metro so all Sprites are now correctly drawn
- Refactored the metro FormatConverter
- Refactored and fixed the metro index and vertex buffer
- Implemented setting multiple texture parameters under metro
2012-08-20 09:08:07 +00:00
SND\AstrorEnales_cp
947287b0ab Refactored a lot of the rendering in the metro system and improved the memory usage of the ParameterBuffer 2012-08-19 21:01:29 +00:00
SND\AstrorEnales_cp
2ffe3004cd Implemented caching of the shader parameter size 2012-08-19 17:34:27 +00:00
SND\AstrorEnales_cp
cde32060ec Forgot the buffer write for unset parameters 2012-08-19 15:22:21 +00:00
SND\AstrorEnales_cp
cfe19d5c4a - Implemented a dynamic parameter buffer for shader parameters
- Updated the Metro shader generator
- Fixed the metro resolution being correctly set to the graphics device
2012-08-19 14:38:58 +00:00
SND\AstrorEnales_cp
a13072cb93 Got first Metro sprite rendering to work! At the moment there are some hacks in there to make it possible. Going to clean that up now. 2012-08-16 20:57:02 +00:00
SND\AstrorEnales_cp
1662fbeef1 - Fixed a small bug in the hlsl parser
- Further work on the shader generation
- Started working on shader loading in the RenderSystem
2012-08-16 16:44:35 +00:00
SND\AstrorEnales_cp
5a51961e2c Added license header to all new files and started working on the Metro shader generation 2012-08-16 14:03:31 +00:00
SND\AstrorEnales_cp
d17743ef3a - Some smaller Refactorings in Metro systems
- Added a bunch of Basic TypeWriters to the ContentPipeline
2012-08-14 13:07:24 +00:00
SND\AstrorEnales_cp
eccbb00742 - Implemented ContentManager.OpenStream for Metro (Texture loading works already)
- Started refactoring all the Metro rendering classes
- Fixed some missing License headers
2012-08-14 08:44:12 +00:00
SND\AstrorEnales_cp
6736698b5c - Added Default Metro Assets to the media path
- The ProjectConverter now adds the default assets to metro projects
- Excluded the Tools projects from the converter
2012-08-13 17:31:28 +00:00
SND\AstrorEnales_cp
67a2c482fd - Working on Metro conversion (adding the AppxManifest automatically)
- Working on Graphics initialization on Metro (already clearing with a bit of hacking!)
2012-08-13 11:23:26 +00:00
SND\AstrorEnales_cp
8881369976 Fixed the Metro converter so that executables are correctly converted. Still need to generate the certificate and add the Assets 2012-08-12 22:17:56 +00:00
SND\AstrorEnales_cp
bf97e6ba69 Updated Metro Converter and fixed a missing project reference 2012-08-12 21:43:28 +00:00