90 Commits

Author SHA1 Message Date
Konstantin Koch
c61b7a077e Migrated WindowsFormsEditor and WindowsGame and did basic implementation of OpenTK InputDevices
Made it possible to separate the InputDevices by their provider and set
a preffered provider. Otherwise you are restricted to only having one
input Device provider.
Improved the error message if the WindowHandle on the InputDeviceFactory
is invalid.
Improved AssemblyLoader which was skipping the InputDevices.OpenTK
assembly because the OpenTK assembly was blocked. Added ANX.Framework
and SharpDX.Direct3D11.Effects to the ignore list.
The AssemblyLoader is not static anymore (Only used in
AddinSystemFactory) and it doesn't add the same assembly multiple times
anymore. Additionally, if a type of an assembly couldn't be loaded, it
throws now a TypeLoadException with the hint that a dependency might
have been loaded in the wrong version.
Refactored RenderSystem.GL3 with the latest changes on the effect system
that have been done in the ANX.Framework.
2015-10-18 13:37:39 +02:00
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
930b2526f7 made the WindowsGame example work again with all available rendersystems.
Also made the recording inputsystem not selectable for that sample as that needs some code modification in the sample to make it work.
It was not possible to run it with openGL because the creation of the windowInfo object was faulty, it might have worked on linux, but it didn't work on windows.
Also updated a few deprecated calls for OpenGL.
Closing an OpenGL application did wrongly throw an exception when an effect gets disposed, this is fixed now and the memory usage was slightly reduced.
For DirectX 11, which didn't work for the samples out of the box, it was changed that the sharpdx effect dll's are now part of the directx 11 rendersystem so that they don't have to be copied over manually anymore.
Did some very small change to the RecordingGamePad class which makes it work if no data is recorded or played back.
2015-03-15 01:14:25 +01:00
SND\rene87_cp
112a9bc00b rebase 2015-03-15 01:12:48 +01:00
SND\rene87_cp
a6d50e8c72 Improve the Inputsystem for ModernUI 2015-03-15 01:12:47 +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
0daa7c04f9 - applied patch #13368 of clcrutch (fixes XInput's Keyboard.GetState(PlayerIndex) to match XNA's functionality)
- added build support for "Visual Studio 2012 Express for Windows Desktop" using the MakeAnxFramework command
- marked patches in source files
2015-03-15 01:12:24 +01:00
Glatzemann
286f0d9478 build script improvement: only stock shaders which are needed for the build target are generated, not all anymore 2015-03-15 01:12:12 +01:00
Glatzemann
a5f4931578 fixed issue #1082 (SpriteFont UTF8 issue) 2015-03-15 01:12:10 +01:00
Glatzemann
5b871f27fa - added InputSystems to Windows 8 / Metro build (main build script)
- fixed some compile errors in XAudio SoundSystem when building for Windows 8 / Metro
- updated ProjectConverter to remove OggVorbis assemblies from project references when building for Windows 8 / Metro
2015-03-15 01:12:09 +01:00
Glatzemann
6e01932070 fixed some Windows 8 (non ModernUI mode) issues:
- made DX10 RenderSystem available
- fixed adapter enumeration in DX10 and DX11 RenderSystems
- fixed GamePad initialization error handling on Windows 8 when XInput 1.3 is not installed
2015-03-15 01:12:06 +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
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
SND\AstrorEnales_cp
0d25ca7589 - Added OggUtils Support project by making use of the csogg and csvorbis projects
- Implemented native Song playback in OpenAL and XAudio2
- Some tweaks in the MediaPlayer and MediaQueue
- Added a testmusic.ogg file to the media folder
2015-03-15 01:11:27 +01:00
Glatzemann
e5ac8228ca some more build tweaking for Windows 8 2015-03-15 01:11:26 +01:00
Glatzemann
7ec2f356dc - some more work on build system for Windows 8
- minor tweaking in ProjectConverter for ModernUI / Metro
2015-03-15 01:11:23 +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
SND\AstrorEnales_cp
3bf2261cd0 Finished Task #539 and implemented some VideoPlayer logic 2015-03-15 01:11:18 +01:00
Glatzemann
3d5b24d6f6 Fixed issue #1015 (GetData method of vertex buffer). See VertexIndexBuffer sample for a proof of concept (search for GetData in Game1) 2015-03-15 01:11:09 +01:00
SND\rene87_cp
6ea62b97ff Add Body of the ModernUI SoundSystem 2015-03-15 01:11:06 +01:00
SND\rene87_cp
31bbd65ca0 First usable Version of Windows ModernUI InputSystem
Mouse and GamePad
2015-03-15 01:11:05 +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
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
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
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\floAr_cp
1f036805f5 Fixed Issue 995 http://anxframework.codeplex.com/workitem/995
Swapped middle- and right- mousebutton.
2012-09-08 08:52:37 +00:00
SND\AstrorEnales_cp
379a1bc50e Some refactorings in the Input namespace and added PercentageComplete and TestState attributes to most classes 2012-09-01 16:20:44 +00:00
SND\AstrorEnales_cp
ce07f40b4c Brought XInput GamePad to 100% implementation (final testing still needs to be done) 2012-09-01 13:22:52 +00:00
SND\AstrorEnales_cp
c9aa5eb707 Further refactoring of the XInput InputDevices, fixed some stuff and working on implementing it 100% 2012-08-31 21:45:50 +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
SND\AstrorEnales_cp
845d8ec716 - Further implemented the Dispose chain which now prevents the OpenGL gd from leaking (still some work required)
- Logging OpenGL version on Device Reset with GL3 RenderSystem
2012-08-30 12:05:40 +00:00
Glatzemann
64ac2da9dd Started to implement texture part of the ContentPipeline. 2012-08-27 09:12:20 +00:00
Glatzemann
6c5faecfae moved ANX.InputDevices.Windows.ModernUI to correct location 2012-08-27 05:36:49 +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
9200286a83 - Implemented TouchPanel classes and added native TouchPanel interface
- Started PsVita Input project and implemented Touch and GamePad so far
- Added OpenALAudioListener
2012-08-22 09:51:35 +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
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
SND\AstrorEnales_cp
ca0d730bbb - Working on Metro Platform and Rendering
- Further implementations in the PsVita RenderSystem
2012-08-12 20:00:19 +00:00
SND\AstrorEnales_cp
9cfc4d256d - Started working on AssemblyNameFile to make the Factory work on all systems
- Started PsVita RenderSystem and PlatformSystem (still much todo)
2012-08-11 13:06:29 +00:00
Glatzemann
50e00c2052 - added NUnit 2.6.1 to libs folder -> it is used by the test cases
- fixed a lot of issues with the build system
- added PlatformSystems to the build
- fixed some project files (missing using statements)
- added PlatformSystems to the msi installer
- fixed some issues in the msi installer
- updated WIX to version 3.6RC (to support VS2012)

WIX v3.6RC is not included in the svn repository. If you want to build a msi installer yourself you have to install it. I added the link to the wix installer package to the documentation.
2012-08-10 13:24:34 +00:00
SND\AstrorEnales_cp
d05594fce8 Completely removed the Metadata.resx files which didn't work on Metro, added a new approach with an Interface and derived classes in the modules, which is basically the same approach. 2012-08-09 16:33:47 +00:00
SND\AstrorEnales_cp
5505f7dcbf - Added PlatformSystem Plugins layer
- Started Windows, Metro and Linux Platform-Plugins
- Moved the RecordingSample to the Samples folder
- Started two samples for using the graphics device in a WinForms and Wpf Editor
- Refactorings in the AddIn-System
- Moved the Window initialization-code to the Platform modules
- Changed the License text in all code files which is now way smaller
- Started ProjectConverter tool which converts all the projects and solution to the target configuration
- Changed the SupportedPlatform names in the Resource files
- Changed the WIN8 define to WINDOWSMETRO which is actually meant
- Removed NLog and started our own Logger class
- Many more stuff...
2012-08-09 09:45:04 +00:00
SND\simsmaster_cp
3ca3e314d7 Some work on the RecordingGamePad. 2012-08-08 12:04:37 +00:00
Glatzemann
5ce38121d4 some work on building ANX.Framework for Windows8 / Metro Style 2012-03-26 08:27:29 +00:00
SND\rene87_cp
467be0df38 improve GamePadTest 2012-02-19 11:26:27 +00:00
SND\AstrorEnales_cp
e1d3ca0575 - Made the loading of assembly types faster and more safe
- Started working on implementing all Texture baseclass methods
2012-02-19 11:24:23 +00:00
SND\AstrorEnales_cp
1cebf6f91e - Introduced new MediaSystem creator (handling the whole Media namespace)
- Made the plugin handling internally way simpler (no tons of duplicated code anymore)
- Added empty MediaSystem to have a default for now (Windows.OpenAL)
- Added a PercentageCompleteAttribute which will be used to mark the current state of a class (0-100%)
2012-02-15 19:48:46 +00:00
Glatzemann
d0dbd56aab - fixed some build errors in ANX.InputSystem.Recording when using the CLI MSBuild tasks
- improved the installer and added a start menu folder with ANX2XNA Converter, ANXStatusComparer, ANX.Framework website and a uninstall link
2012-01-27 17:15:57 +00:00
SND\rene87_cp
3bcbe67d9c add new Inputsystem for Test
add MouseTest
2012-01-20 15:17:50 +00:00