41 Commits

Author SHA1 Message Date
Konstantin Koch
3cd7efbba4 Migrated StencilBuffer example and removed memory leaks for DX10 and DX11
Remove build message saying that a content file is still valid and will
be skipped.
Use OnApply for Effects, instead of an internal PreBindSetParameters.
Removed unnecessary dependencies from EffectParameterCollection and
EffectTechniqueCollection.
Moved Apply from INativeEffect to INativeEffectPass as Apply can only be
called on an EffectPass.
Added IDisposable to many Native object interfaces.
Added an InputLayoutManager so the InputLayouts don't get created on
every call.
Increased the amount of shared code for the GraphicsDevice between DX10
and DX11.
Simplified the amount of stuff the Draw calls do.
It's possible to use specific renderPasses when drawing and the drawing
methods of the GraphicsDevice don't draw all effectPasses of an effec
anymore.
Fixed the bug that a DynamicVertexBuffer created a staging buffer when
setting Elements for DX10 and DX11, which was unnecessary. Also it
didn't create a staging before for normal VertexBuffers which made it
not possible to set data there.
Implement EffectAnnotations for DX10.
Fixed SetRenderTargets for DX11.
2015-10-14 23:59:27 +02:00
Konstantin Koch
85322e2363 Migrated Primitives, RecordingSample, RenderTarget and SimpleSprite. Also implemented DynamicBuffers and fixed many Dispose functions
increased the amount of shared code between vertex and index buffers
fixed GraphicsDevice.Reset() which didn't save the provided presentation
parameters and the backbuffer was still bound after the recent changes
about the rendertargets
Vertex and IndexBuffers that get dynamically generated for the UserDraw
methods dispose the buffers now
Added DebugNames to Index and VertexBuffers and their Dynamic version.
2015-10-04 21:30:00 +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
SND\AstrorEnales_cp
6c488dbca5 - Working on tests for all the graphics collection classes (Finished: ModelBoneCollection, DisplayModeCollection, ModelBone)
- Added some excludes to the AssemblyLoader to decrease startup time a little bit
2015-03-15 01:11:53 +01:00
SND\AstrorEnales_cp
4fdad340d3 Fixed the StorageDevice and StorageContainer and native implementations 2015-03-15 01:11:40 +01:00
Glatzemann
5ac399a71d added lots of developer attributes 2015-03-15 01:11:36 +01:00
Glatzemann
0c98c29886 Worked on issue #531. Primitives sample is now much more complete. The instanced primitives are looking much better in PIX now, but still not rendering. 2015-03-15 01:11:01 +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
Glatzemann
9414d12668 - fixed DrawUserIndexPrimitives (issue #531) 2015-03-15 01:10:58 +01:00
Glatzemann
56488848f2 - fixed issue #1005 (wrong model rendering due to vertex buffer offset problem)
- added new models for testing
2015-03-15 01:10:57 +01: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
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
aa75450b34 - added samples to build file
- improved error handling and logging during AddIn loading
2012-08-29 18:29:57 +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
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
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\GinieDp_cp
2cd5e8b803 - Fixed the ModelSample
- Added texture rendering to ModelSample
2012-03-10 22:29:29 +00:00
SND\AstrorEnales_cp
772d4be8d3 - OpenGL render system now keeps track of all it's resources and Disposes and Recreates them if needed
- OpenGL Device is now Reset correctly when for example the window size changes (Recreating all resources)
- OpenGL render system doesn't crash anymore when closing the application
- Introduced TestStateAttribute for development to mark a file as tested/untested
2012-02-18 22:43:08 +00:00
SND\AstrorEnales_cp
1441ae2704 Fixed some signatures and added all methods to the INativeEffectParameter interface.
- Implemented some of the Get methods in the EffectParameterGL3
2012-01-16 15:03:28 +00:00
Glatzemann
746582483d - Changed Primitives sample to ANX now (currently not working)
- fixed VertexDeclaration constructors (params keyword)
- VertexDeclaration: calculation of VertexStride implemented
- fixed issue #548 (GraphicsDevice.Viewport StackOverflowException)
- small improvements in EffectTechniqueCollection
2011-12-27 08:19:27 +00:00
Glatzemann
c8bb0b6443 fixed issue #534 ("StencilSample: InvalidOperationException") 2011-12-16 07:54:47 +00:00
Glatzemann
9994697275 fixed issue #517 ("Wrong render size after applying changes")
fixed issue #518 ("DepthStencilBuffer resizing")
fixed issue #471 ("SpriteBatch crash")
2011-12-09 08:46:25 +00:00
Glatzemann
8e69296c4d added basic GraphicsResource tracking
native objects of Effect, VertexBuffer, IndexBuffer, DynamicVertexBuffer and DynamicIndexBuffer are recreated now after destroying GraphicsDevice
2011-12-07 08:40:40 +00:00
Glatzemann
81d2290b6a fixed issue #474 (GraphicsDevice clear exceptions) 2011-12-05 13:52:44 +00:00
Glatzemann
39ad6c969e prepared new sample project: Primitives (currently XNA used for rendering) 2011-11-30 16:03:51 +00:00
Glatzemann
22346e47b0 implemented feature #461 (GraphicsDeviceManager: Screen size and FullScreen mode not working) 2011-11-30 13:58:55 +00:00
Glatzemann
0d196c2f53 Started implementing RenderTargets for RenderSystem DX10. The target is creatable and usable but the Texture of the RenderTarget is currently empty. 2011-11-28 16:06:52 +00:00
Glatzemann
d8d88b141c added new target "create_packages" in build script
PreferredBackBufferWidth and PreferredBackBufferHeight are returning values now
added EffectPass handling
applying effects is not a workaround anymore
2011-11-22 14:51:30 +00:00
Glatzemann
972f7121e8 renamed CurrentCreator to DefaultCreator project wide
extended InputSystem selector in WindowsGame sample
fixed some interface issues in XInput InputSystem
added FormatConvert to InputSystem XInput to translate GamePadButtons from XInput to ANX
2011-11-11 15:21:41 +00:00
Glatzemann
f06890de59 reading used GraphicsProfile out of game assembly
some work on Kinect InputSystem (Dispose, fetching of RGB image)
changed handling of native textures (providing data for Texture2D at the moment)
implemented SetData methods for Texture2D
basic Dispose handling of Texture and Texture2D implemented
RenderSystemDX10: moved FormatSize method to FormatConverter to avoid duplicated code
RenderSystemGL3 is BROKEN in this version. New texture handling needs to be adapted.
2011-11-11 07:29:49 +00:00
Glatzemann
0a8bdbb9b0 Resizing of RenderWindow using PresentationParameters and GraphicsDevice.Reset implemented. See TextRendering as example. But: GraphicsDevice.Reset is very incomplete at the moment. 2011-11-09 19:39:21 +00:00
Glatzemann
55bf23606a added a Kinect sample project for testing 2011-11-09 12:31:32 +00:00
Glatzemann
1efaa0a111 some more work on GraphicsDevice
prepared GetData for BackBuffer and native hardware buffers
2011-11-07 14:53:33 +00:00
Glatzemann
72c4ddff1c finished handling of RenderTarget in GraphicsDevice (anx side only) 2011-11-07 13:18:30 +00:00
Glatzemann
94e0509b44 finished anx side handling of VertexBuffers in GraphicsDevice and finished VertexBufferBindings 2011-11-07 13:04:42 +00:00
Glatzemann
2844c8b1ac worked on some ToDo's
some more work on GraphicsDevice
2011-11-07 11:26:19 +00:00
Glatzemann
a89e52a428 some more work on graphics device 2011-11-07 09:01:42 +00:00
Glatzemann
68875fe086 MouseState: now reported as complete by ANXStatusComparer
Mouse: fixed a typo in SetPosition
GraphicsDevice: prepared some more methods
2011-11-07 06:52:52 +00:00
Glatzemann
5b97ddde7a some work on GraphicsDevice methods 2011-11-04 20:22:32 +00:00
Glatzemann
ded4cb1857 RenderSystem DX10: moved all type translations to a static class
extended the IRenderSystemCreator interface to obtain available GraphicsAdapters of a render system
enumeration of GraphicsAdapters implemented for DirectX 10 RenderSystem
enumeration of DisplayModes implemented for DirectX 10 RenderSystem
improved GraphicsDeviceManager
2011-11-03 12:37:07 +00:00
Glatzemann
8326720ee3 initial import 2011-10-31 05:36:24 +00:00