Commit Graph
100 Commits
Author SHA1 Message Date
tobid7 e8a9055090 Layers are back 2026-09-06 14:39:28 +02:00
tobid7 9e27dfb0eb hotfix 2026-09-06 14:25:12 +02:00
tobid7 42c669de55 Add Hid3DS 2026-09-06 14:21:30 +02:00
tobid7 4488425a94 Bring back global lithium pools
why?
cause sorting around the global driver pool would basically use more cpu power then just copy data sequences into the right order
And sorting data references costs 0 performance at all
2026-09-05 22:52:59 +02:00
tobid7 eafe5c9be5 Add Drawlist Vertex and Indexcount geteter (for debugging usage only) 2026-09-05 21:28:09 +02:00
tobid7 d18e397eaf Fix The rest of UI7 Mem leaks
Throw OneFrame living objs into a pool
2026-09-05 18:06:59 +02:00
tobid7 fc5a357caa stop leaking idobj memory (and coloredit layout mem) 2026-09-05 18:06:12 +02:00
tobid7 a1cb3bf290 dx9: update device size on window size change 2026-09-05 17:18:21 +02:00
tobid7 8c1063640c format documents 2026-09-05 17:04:28 +02:00
tobid7 85f50df154 unload debugfont and add Gfx debug menu 2026-09-05 17:03:17 +02:00
tobid7 32c94e0776 fix random garbage ptr issues 2026-09-05 17:02:58 +02:00
tobid7 6b5f30b334 Fix Indexorder issues and patchfixsomehow dx9 tex filtering 2026-09-05 17:02:37 +02:00
tobid7 42cb7ce2ed No big update without msvc compiler errors :/ 2026-09-05 16:29:53 +02:00
tobid7 26a8c230c6 More timings 2026-09-05 15:10:48 +02:00
tobid7 0a5a86459b UI7 is BACK!
took me about a full week to get something to render again withour shared_ptrs
as of now this is very unstable, untested and lacking a lot of features due to lithium is lacking the base for that
Added JetBrainsMono font as debug font for the metrics
2026-09-05 14:48:03 +02:00
tobid7 0f25a70901 Add missing GetDriverName to Os 2026-09-05 14:47:41 +02:00
tobid7 6a22b26a3d Draw the line (oder so) 2026-09-05 14:46:51 +02:00
tobid7 245cc0f314 Load the font async for now 2026-09-05 11:56:41 +02:00
tobid7 cb437d41a0 n3ds-boost 2026-09-05 11:56:26 +02:00
tobid7 322ce785b9 SDF & MONOSPACE FONT RENDERING 2026-09-05 11:56:13 +02:00
tobid7 b29e298d55 save 75% of font memory 2026-09-03 09:36:41 +02:00
tobid7 2801b876e6 Upload pools once per Gfx::Draw and FIX DX9 2026-09-03 09:18:49 +02:00
tobid7 f1540f0098 reset pools on newframe 2026-09-03 08:12:34 +02:00
tobid7 54584728c3 move global pools into gfx driver
prevents double copy problems
saves memory
(needs to be optimized...)
2026-09-02 08:04:50 +02:00
tobid7 daaf473af7 faster rect command creation 2026-09-01 21:21:40 +02:00
tobid7 9ed3ed233d cache ascii chars directly 2026-09-01 21:20:52 +02:00
tobid7 dd97aab749 insane performance boost (on 3ds) 2026-09-01 21:16:23 +02:00
tobid7 0746295013 time trace is back 2026-09-01 10:02:54 +02:00
tobid7 2984354884 implement Image::Convert and Image::Flip 2026-09-01 08:15:03 +02:00
tobid7 4d2470b0c6 pool append move and copy 2026-08-31 08:59:41 +02:00
tobid7 cfb6a9b3dd # small fixes
- Fix Os::GetTimeNano()
- only build tests on non vendored usage
2026-07-19 14:27:48 +02:00
tobid7 799e779fe6 Fix 2026-04-30 12:38:35 +02:00
tobid7 7f708a565e Fix 3ds build and update libpicasso 2026-04-25 00:01:06 +02:00
tobid7 280ce524bf remove poc func 2026-04-18 14:34:45 +02:00
tobid7 b99fc39444 Add support for rotated gradients 2026-04-18 14:33:31 +02:00
tobid7 6dbf5a4812 Add stick and trigger input support 2026-04-09 21:51:38 +02:00
tobid7 ff3b241dd2 Fix clang warning 2026-04-05 04:31:50 +02:00
tobid7 7a1751589e fix preset names for Selection Views 2026-04-05 04:31:22 +02:00
tobid7 8a4b3c119d Add NX Hid Driver Template
- Add WIP HidNX Driver (clangd not working with devkitpro for switch on windows)
- Add default-release as default search path for compile_commands.json
- remove mingw preset (casue its exactly the default target)
- Move Mouse pos cycle into HidDriver::Update
- Test around with HidGlfw on Nintendo switch
2026-04-05 04:20:32 +02:00
tobid7 1f7d96a455 Add proper Gamepad support (WIP) 2026-04-05 00:26:00 +02:00
tobid7 c9768010f2 allo wPD::Color in Drawlist 2026-04-04 17:44:05 +02:00
tobid7 679de3ae94 Add Input functionality to Ultra
- Add point InSpace check to PD::Li::Math
- Add Universal AlignmentCenter flag for Horizontal and and Vertical Alignment
-  Add Fallbackfont to Layout (if you dont want to set font per object)
- Add Button Object WIP
- Rename OnHover to OnFocus and add OnUnfocus
- Move font and FontScale to ElementBase (for fallback logic etc)
- Add UpdateInput func to ElementBase
- Corectly Set fontScale in Text Rendering
- Update ecample
2026-04-03 15:17:43 +02:00
tobid7 af7fc026df Allow implicit usage of "#ffffffff" etc 2026-04-03 14:22:51 +02:00
tobid7 5bc8046ebe Add HidDriver base and small HidGLFW driver 2026-04-03 14:12:42 +02:00
tobid7 8215baac99 rename PDBackendFlags to PDGfxBackendFlags 2026-04-03 12:52:30 +02:00
tobid7 a776addf11 Implement VCanvas and Update TextElem
- Text now requires a font and is able to take an individual scale
- Container requires &ref for Elements to make sure they always exist
- SetViewport now sets the canvas as well
- SetBaseViewport Sets the Virtual Canvas Size
- Layout Now requires a Drawlist reference in Render function
- main.cpp: updated the template
2026-04-03 12:43:49 +02:00
tobid7 1cf3b6f8e6 Actually implement ultra-rendering 2026-04-02 23:29:53 +02:00
tobid7 b5321ca1a1 Rework Project Ultra
- Added container
- Made container the base of Layout
- Set Containers theirself as pParent for Elements on Push
2026-03-29 04:28:45 +02:00
tobid7 4498c2c0fb Fix path rects 2026-03-29 04:27:37 +02:00
tobid7 818b086f08 Fixing riunded rects 2026-03-29 01:08:02 +01:00
tobid7 e560496512 Add a default preset (for linux/macos default builds) 2026-03-28 13:59:42 +01:00
tobid7 7b6e611f12 Add cmake presets
- MSVC requires cmake for Windows
- mingw only builds when GLSLANG is excluded due to wrong header generation
2026-03-28 13:53:55 +01:00
tobid7 72deaad28d build 3dsx and nro in ALL stage 2026-03-28 13:52:59 +01:00
tobid7 2e652a3c24 More stuff done at Project Ultra
- Added renderspace
- Revision System (to not always update pRenderspace
- added some test scene
2026-03-28 13:52:36 +01:00
tobid7 784421fa6c WIP (Codename Ultra) UI lib 2026-03-26 21:02:10 +01:00
tobid7 bc06a3fee8 implement font deletion 2026-03-26 21:01:43 +01:00
tobid7 d2ab60c824 Fix font bugs 2026-03-25 22:24:54 +01:00
tobid7 a8fe58ef0f Add debug getters (and somehow text is not rendering :/) 2026-03-25 20:27:23 +01:00
tobid7 eea0e9844f Fix Vertex Alloc usage at Index Alloc 2026-03-24 22:20:41 +01:00
tobid7 4777c85f9a Readd font support (not workign yet) 2026-03-22 21:50:53 +01:00
tobid7 b49c0bd3dc Update lazyvec / vec api as well as rect are mostly constexpr now 2026-03-22 00:15:14 +01:00
tobid7 4db5d98cb2 Always disable glslang build for NintendoSwitch on Windows 2026-03-21 19:28:59 +01:00
tobid7 794e06b890 Present DX9 Frames ... 2026-03-21 16:47:16 +01:00
tobid7 d8efcd41b1 Add a PositionTranslate func and add Errors for TextureSize mismatch 2026-03-21 16:39:55 +01:00
tobid7 4dab1987d1 Add PD::Image and add a setter for logfilter 2026-03-21 15:52:09 +01:00
tobid7 6fab4a07a9 Forgot about dx9 (UNTESTED!!!) 2026-03-21 14:48:48 +01:00
tobid7 baad2ce15c Add Os Bridge into test framework 2026-03-21 14:43:16 +01:00
tobid7 a86c13b9a3 Refactor PD::Li Pools system, Upgrade PD::Pool and add better logging
- Add ResetFast to Pool using c++20 concept
- Add Put function to Pool
- Use Pool Index instead of pointers in Command
- Add accessor to Li Pools to prevent wrong command usage
- Add Command Formatter
- Use ResetFast for all Pools
- Add Reset func to Li::Vertex (for ResetFast)
- Add Pool Expandor and Put funcs to Lithium pools
- Add getters for GfxDriverBase to PD::Li Pools
2026-03-21 13:35:16 +01:00
tobid7 3b0b103eb3 Add nintendo switch support 2026-03-21 10:18:01 +01:00
tobid7 6beef97cdf Remove Gfx Driver Vertex and IndexBuffer size config 2026-03-21 10:11:10 +01:00
tobid7 afe30a5dbd Add Drawlist
- Add Pool iterator support
- Add Pool Expandability
- Add Pool::Push
- Add Lithium Maths API
- Remove InitPools
- update spirv-helper
2026-03-19 22:06:58 +01:00
tobid7 e6cd8b7d24 Merge branch 'dev-0.7-rewrite' of ssh://dev.npid7.de:222/tobid7/palladium into dev-0.7-rewrite 2026-03-19 16:26:07 +01:00
tobid7 66602a79e0 Replace spirv-helper stuff with a library that combines everything 2026-03-19 15:54:01 +01:00
tobid7 a28b7318d2 Add the shaders 2026-03-19 09:22:46 +01:00
tobid7 71563e8979 Add pdsg (palladium spirv-generator)
- remove glslang from pd-system
- use spirv blobs instead of glsl 460
- Use Legacy shaders for OpenGL2 backend
- add devnotes
2026-03-18 21:21:00 +01:00
tobid7 7d89ab1c47 Add SpirvHelper (Shader cross compilation)
- Make OpenGL2 and OpenGL3 use the same base shaders (using SpirvHelper)
- Add Transpose func to Mat4
2026-03-18 15:17:48 +01:00
tobid7 186fce803e Add missing sources 2026-03-18 11:37:44 +01:00
tobid7 66412ca8e0 Full 3ds support and fix dx9 2026-03-18 11:34:36 +01:00
tobid7 e04046720b Work at 3ds support and backend upgrades
- Track textures (not sure if this is done tbh)
- Add lithium formatters and move TextureID, TextureFormat and TextureFilter to lithium
- Only include gl-helper if any glDriver is included
- Add Li::Rect for UV stuff
- Add Li::Texture as Info holder (still thinking of making them to ptrs
- Add Check if textures are still loaded on exit
2026-03-18 09:31:47 +01:00
tobid7 d4c59e5b61 Add backends
- Renamed GfxOpenGL to GfxOPenGL2
- Added GfxOpenGL3 backend for OpenGL 3.3+
- Added WIP DirectX9 backend
- Added structure for Citro3D
- Added linear Allocator
2026-03-17 16:47:19 +01:00
tobid7 fe9194b907 More work to drivers
- Add gfx_test
- add texture loading to GfxOpenGL
- add full submit code
- add debug logging
- add construct and destroy functionality to Pool
- add command functionality
- add vertex and index pools to lithium (static and not threadsafe yet)
- Update GfxDriver Matrix with SetViewPort
- Add glfw (only dependency of gfx_test) maybe later required for input driver
2026-03-16 17:33:46 +01:00
tobid7 4924d86bc0 # Work at gfx driver system
- Update pool to use template allocator directly instead of std::vector
- Add a GfxDriver config Template to be able to modify settings like allocators / Types for specific Drivers
- Add glad
2026-03-16 15:19:12 +01:00
tobid7 41b612ec0a 0.7.0 rewrite dev
- remove everyting
- keep core
-rename bit_utils to bits
- add formatter for  color
- add float getters to color
- start with new drivers api
2026-03-16 06:37:51 +01:00
tobid7 ff1b574276 [pd-ui7] add getters for ui7 menu pos and size 2026-03-13 20:55:40 +01:00
tobid7 1b47ed843f [pd-drivers]: Ad more debug values
[pd-3ds]: Use new debug values
[pd-lithium]: Add functionality to DrawList::Optimize
[pd-ui7]: Add setters for Menu pos ans size
2026-03-12 20:18:27 +01:00
tobid7 02d2200edd Fix Render discard issue [pd-3ds]
- Clip Rects do now not discard when they move out of screen (cause the maths ends in < 0 which is not working with u32)
- Fixing ui7 crash wehn im input was nullptr
2026-03-10 18:57:29 +01:00
tobid7 97efca5173 Merge branch 'stable' of https://github.com/tobid7/palladium into stable 2026-03-09 20:47:53 +01:00
tobid7 68cc809555 Fix Drawlist::Clear / Add HashID / FNV Type traits 2026-03-09 20:46:41 +01:00
tobid7 ca490df915 Add U8Iterator and Pool base class 2026-03-05 20:24:47 +01:00
tobid7 da0f7320c8 Add stuff for cmake find_package
- Add build* to gitignore
- Fix year in license file
- other changes are result of clang-format
2026-03-01 21:41:53 +01:00
tobid7 8ee7006d2c Export OS correctly 2026-01-30 20:19:13 +01:00
tobid7 683c226ce0 Fix MSVC dll building 2026-01-29 20:17:04 +01:00
tobid7 1ec06a26cc Fix GL Scissor in Desktop Backend 2026-01-28 07:40:34 +01:00
tobid7 21b45f5855 WIP: Add CLipRects to UI7 Layouts
- Added Scissor Support to Font Rendering
2026-01-28 07:11:56 +01:00
tobid7 090656b30c Fix close sym input logic 2026-01-27 08:06:52 +01:00
tobid7 e8072a064c WIP Backend System Redesign Step 1
- Created 1 Context for Backend Management and Sharing
- Made every class that used a static Backend require the Context or specific Backend
- Bring Back 3ds support
2026-01-26 20:46:27 +01:00
tobid7 892f8ce0c4 Update License Header Text 2026-01-25 21:12:16 +01:00
tobid7 c373b15bab remove drivers pd_p_api header 2026-01-25 21:00:50 +01:00
tobid7 fb46f4d36a Let's just use 1 PD_API header 2026-01-25 20:57:14 +01:00
tobid7 337c016824 Unfiy all sub projects back into 1 libpalladium 2026-01-25 20:44:52 +01:00