Commit Graph
100 Commits
Author SHA1 Message Date
Simon Lübeß d200c2c849 Refactored FontRenderer, fixed Sandbox2D 2021-08-15 13:20:38 +02:00
Simon Lübeß f5f3bad8db Fixed Renderer2D
- Fixed textures not being bound
- Fixed destructor trying to delete scoped object
2021-08-11 17:20:48 +02:00
Simon Lübeß 344accea60 Implemented Materials
- Shaders get Textureslots via reflection
- added Textureslots to Effect
2021-08-09 18:03:47 +02:00
Simon Lübeß 2326e69c0c Added submodule gltf
This time for sure
2021-08-06 12:31:51 +02:00
Simon Lübeß 80e0bae347 Added GLTF submodule and start of ModelLoader 2021-08-06 12:22:46 +02:00
Simon Lübeß 5c0ee3bae0 VertexBuffer, VertexLayout and GeometryBinding improvements
- VertexBuffer: Added constructor that takes stride instead of type
- VertexLayout: Added Refcounting to VertexLayout and ownership parameters for VertexElements
- Fixed: GeometryBinding using stride and offset from buffer instead of buffer binding
2021-08-05 18:32:21 +02:00
Simon Lübeß e04d058381 Added PerspectiveCameraController 2021-08-04 19:23:29 +02:00
Simon Lübeß 0735aae74f Added OrthographicCameraController 2021-08-04 17:22:49 +02:00
Simon Lübeß 3ac99491cf Changed EventDispacher from class to struct 2021-08-04 17:22:14 +02:00
Simon Lübeß 303578a83f Fixed Width and Height property of ApplicationEvent 2021-08-04 17:21:03 +02:00
Simon Lübeß ce163db30b Unified texture loading, updated DirectX-beef 2021-07-22 18:57:35 +02:00
Simon Lübeß dbdb8a0d32 Made FontRenderer static, added scale and linegap to DrawText
it seems I forgot to push the freetype-submodule
2021-07-19 20:19:57 +02:00
Simon Lübeß 9b418521af Fixed WasKeyPressed and WasKeyReleased 2021-07-19 20:07:30 +02:00
Simon Lübeß b1ad7b5ba3 Added single stepping 2021-07-19 20:06:37 +02:00
Simon Lübeß 9158da60c2 Refcounted Font, added Fallback property 2021-06-23 19:39:32 +02:00
Simon Lübeß 7f8379ea6c Implemented FontRenderer 2021-06-23 19:17:17 +02:00
Simon Lübeß 8c957f9d9f Renderer2D: render Null-Texture and custom UV-Coordinates 2021-06-23 19:16:40 +02:00
Simon Lübeß 819476a3ec Added constructor and SetData to Texture2D
obviously this has to be done for the other texture types as well at some point
2021-06-23 19:11:37 +02:00
Simon Lübeß 1f1b32e101 Moved CPUAccessFlags and Usage to seperate file 2021-06-23 19:10:04 +02:00
Simon Lübeß f131b21273 Added default SamplerStates 2021-06-23 19:08:41 +02:00
Simon Lübeß 5ae0192bc6 Added DepthStencilTarget to Sandbox2DApp 2021-06-02 16:51:45 +02:00
Simon Lübeß dc088dcb0a Added pixelformat parameter to DepthStencilTarget-constructor 2021-06-02 16:51:25 +02:00
Simon Lübeß bf94f10a64 Added rudimentary DepthStencilTarget 2021-05-30 19:49:10 +02:00
Simon Lübeß 562f4855bd Added Renderer2D and 2D Example 2021-05-30 19:38:24 +02:00
Simon Lübeß 64579f9603 Constantbuffer now supports single bools 2021-05-30 19:38:08 +02:00
Simon Lübeß ae290936b9 Added basic support for instanced rendering 2021-05-30 19:37:23 +02:00
Simon Lübeß 0f2c481616 Fixed vector indexed access 2021-05-22 15:08:14 +02:00
Simon Lübeß b19dd60e52 Debuglogger no longer asserts a Debugger to be present in release builds 2021-05-20 12:42:17 +02:00
Simon Lübeß 2f281f13fd Updated submodule imgui-beef 2021-05-18 23:02:31 +02:00
Simon Lübeß 3eeca63d91 Fixed DirectXTK-Submodule path (for real this time) 2021-05-18 19:39:34 +02:00
Simon Lübeß 3f938d3488 Fixed DirectXTK-Submodule path 2021-05-18 19:37:21 +02:00
Simon Lübeß 7fb1f30303 Componentified Camera 2021-05-17 20:07:58 +02:00
Simon Lübeß 3e0c4b2eb7 Releasing RasterizerState insted of deleting 2021-04-09 19:38:20 +02:00
Simon Lübeß bfd81745e9 Disabled Vector swizzle
caused by beef bug
2021-04-09 19:37:54 +02:00
Simon Lübeß 6376bde112 Implemented basic ECS 2021-04-09 19:35:24 +02:00
Simon Lübeß 047c09017c Removed epsilon value from camera
(bug fixed in DirectX-beef)
2021-04-09 19:35:19 +02:00
Simon Lübeß 1f687f9b96 Added TextureCube 2021-04-09 19:35:13 +02:00
Simon Lübeß ad4933a1f9 Added larger epsilon to perspective camera 2021-04-09 19:35:08 +02:00
Simon Lübeß 838bb7ec2e Added explicit conversion from float to Vector 2021-04-09 19:34:44 +02:00
Simon Lübeß 92a3eaa426 Added protected function to create Texture2D from raw data 2021-04-09 19:32:24 +02:00
Simon Lübeß 4227882afa Added GE_D3D11 flag 2021-04-09 19:32:02 +02:00
Simon Lübeß 5a8499ac43 Moved ImplBind implementation from Texture2D to Texture 2021-04-09 19:31:49 +02:00
Simon Lübeß 72cb982b13 Added lodepng-beef 2021-04-09 19:31:18 +02:00
Simon Lübeß 92b22acb91 Added refcounting to RasterizerState 2021-04-09 19:28:46 +02:00
Simon Lübeß 2ad45edef5 Improved Windows keyboard input
- added handling of syskey-messages (alt-Key now generates Key events)
- right and left variants of keys now generate seperate events (e.g. left shift and right shift are seperate keys now instead of simply being "shift")
- added method to get the localized name of a Key
2021-03-14 17:59:13 +01:00
Simon Lübeß cfff2cb738 Added window (de-)activate events 2021-03-13 17:50:58 +01:00
Simon Lübeß 163dadbe37 Added EffectLibrary 2021-03-05 16:40:45 +01:00
Simon Lübeß 08daa2f59e Added Int32 vectors 2021-03-03 16:42:17 +01:00
Simon Lübeß 78af9e736e Added GeometryBinding refcounting 2021-02-20 14:52:51 +01:00
Simon Lübeß 9ae376f572 Added Vectors and Vector component swizzling 2021-02-20 13:38:05 +01:00
Simon Lübeß 64e9cc1613 Constants of Effects can now be accessed easily 2021-02-16 18:11:34 +01:00
Simon Lübeß 6ab6a6a0b9 Added preprocessing for effects 2021-02-14 15:31:58 +01:00
Simon Lübeß 1f33949be2 BufferCollection cleanup + destringviewified 2021-02-12 12:00:07 +01:00
Simon Lübeß 08026eaf02 Added Effect constructor 2021-02-09 17:25:24 +01:00
Simon Lübeß 1ce94b6a6c VertexLayout cleanup 2021-02-09 17:24:21 +01:00
Simon Lübeß abe4f66724 Added BlendState 2021-02-09 13:37:26 +01:00
Simon Lübeß 7e3bb932fc Added simple SamplerStateManager 2021-02-08 19:36:21 +01:00
Simon Lübeß 9219ccf9d8 Textures can now hold SamplerStates 2021-02-08 15:48:00 +01:00
Simon Lübeß ea140f0532 Added SamplerState 2021-02-08 15:36:47 +01:00
Simon Lübeß 11bc63fb04 Reference counting fixes 2021-02-08 15:25:46 +01:00
Simon Lübeß 2adb138f72 Added Textures 2021-02-08 12:37:30 +01:00
Simon Lübeß 1055712ec1 Added Submodule DirectXTK-beef 2021-02-07 18:42:10 +01:00
Simon Lübeß 54f2c0fcec RefCounted GraphicsContext 2021-02-07 13:04:18 +01:00
Simon Lübeß c1fc1c3fd8 Added extension functions for ImGui 2021-02-07 13:00:17 +01:00
Simon Lübeß 9ea56d6786 Added RefCounting, added ConstantBuffers 2021-02-06 19:37:07 +01:00
Simon Lübeß a2e4b5563e Added Assert to Logger 2021-02-05 15:50:50 +01:00
Simon Lübeß bca23f7a23 GameTime no longer inherits Stopwatch 2021-01-09 14:30:49 +01:00
Simon Lübeß 5277638e01 Added simple camera control 2021-01-09 13:06:08 +01:00
Simon Lübeß 33f8c86a18 Updated directx-beef 2021-01-09 12:40:45 +01:00
Simon Lübeß 4054a9b0c2 Added Camera, Renderer, ... and moved example to sandbox 2021-01-09 12:05:05 +01:00
Simon Lübeß 2159f8087a Drawing test quad 2021-01-08 10:38:16 +01:00
Simon Lübeß 1fe678103e Added Context, Bind and Unbind to GeometryBinding 2021-01-06 19:29:27 +01:00
Simon Lübeß 9eb4a19df1 Added GeometryBinding 2021-01-06 19:22:43 +01:00
Simon Lübeß 4a5a90c859 Added IndexSize to IndexFormat 2021-01-06 19:21:57 +01:00
Simon Lübeß bfb6bc57f4 VertexBuffer is no longer generic 2021-01-06 19:11:13 +01:00
Simon Lübeß 523da5536b (Breaking) Made VertexLayout initialization sexy 2021-01-02 16:32:08 +01:00
Simon Lübeß 3c58e20787 Workaround beef bug 2021-01-01 14:47:49 +01:00
Simon Lübeß e021da8e0b Shaders and BufferCollection now use append allocation 2020-12-31 13:19:27 +01:00
Simon Lübeß ebb5d94c1f Fixed wrong generic const parameter 2020-12-31 12:56:09 +01:00
Simon Lübeß fc5d654d01 Removed NotImplemented call 2020-12-30 19:34:42 +01:00
Simon Lübeß 5736f02dbf cbuffers now initialized with default values from shader 2020-12-30 19:33:51 +01:00
Simon Lübeß 56183c1896 Added reflection and constant buffers to vertex shaders 2020-12-30 18:52:32 +01:00
Simon Lübeß d0c8685ce7 Added SetData for single struct 2020-12-30 18:52:06 +01:00
Simon Lübeß a02b781347 WindowsWindow now calls DestroyWindow 2020-12-30 14:48:37 +01:00
Simon Lübeß 9a010f7c4a Added Buffers to Shaders 2020-12-30 14:47:29 +01:00
Simon Lübeß f3c5ac3d60 Added Assert to Logger 2020-12-30 14:22:51 +01:00
Simon Lübeß 23d2572941 Fixed crash when closing window 2020-12-29 17:34:09 +01:00
Simon Lübeß 567ef97ffb Moved pixel-/vertex shader to own files 2020-12-27 13:55:38 +01:00
Simon Lübeß 3a599fd21a Added vertex shader 2020-12-24 23:53:56 +01:00
Simon Lübeß 9964a1f5ad Added generic Buffer 2020-12-06 00:08:55 +01:00
Simon Lübeß 242d9e728c Added Shader base and PixelShader 2020-12-04 19:02:42 +01:00
Simon Lübeß b12baf695a Added SetPrimitiveTopology 2020-12-01 20:06:29 +01:00
Simon Lübeß eea334db18 fix: Added (dirty) VertexLayout 2020-12-01 19:58:48 +01:00
Simon Lübeß 1c58d0986e Added (dirty) VertexLayout 2020-12-01 19:57:59 +01:00
Simon Lübeß e7464118d6 Now using interpolation strings 2020-12-01 19:29:14 +01:00
Simon Lübeß 6e2c801265 Fixed error "Cant' find project ImGuiImplDX11" 2020-11-29 01:17:57 +01:00
Simon Lübeß 0d4bab5dba Added SetViewport to GraphicsContext, removed Dx11Cheater, cleanup 2020-11-25 21:23:05 +01:00
Simon Lübeß 684669321a Updated DirectX 2020-11-25 20:50:36 +01:00
Simon Lübeß ff16f6a895 Added RasterizerState 2020-11-25 20:04:51 +01:00
Simon Lübeß 5954fbc411 Render basic geometry
Added GraphicsContext, SwapChain, Buffer, VertexBuffer, IndexBuffer and a basic DX11 implementation.
2020-11-25 13:03:40 +01:00