ImGui.NET
ComputeSharp
ImGui.NET | ComputeSharp | |
---|---|---|
17 | 39 | |
1,769 | 2,598 | |
2.0% | - | |
6.4 | 9.8 | |
20 days ago | 11 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ImGui.NET
-
Using ImGui.NET with SDL2-CS?
Now I'm trying to integrate ImGui into the engine. One solution I found was using this but as far as I can tell it locks you into using OpenGL which is something I would like to avoid as one of the main selling points of SDL2 for me is it's abstraction over the rendering backend.
-
c# native with a gui
In additiona to imgui wrapper which works great with NativeAOT, only slight nudge and you have 10Mb executable. With all deps it's 13Mb. Also there Avalonia mentioned in sibling message which work great and in 11.0-preview5 probably would not need any additional configuraiton. In case if OP is have soft spot for web tech, he can use photino.Blazor which also with slight modifications would simply works and produce 27Mb executable.
-
Custom geometry gets rendered on top of Imgui
Imgui gets rendered using ImguiRenderer provided here in the example: https://github.com/mellinoe/ImGui.NET/tree/master/src/ImGui.NET.SampleProgram.XNA
-
Need help with converting C++ to C#
I'm converting rlImGui from C++ to C# so I can use it with ImGui.NET and Raylib-cs but I'm getting stuck at a couple places. I don't know how to convert line 331 to C# since in ImGui.NET cmd.UserCallback is an IntPtr and not something I can call. I did a quick google search and you can use the Marshal library to convert it to a callable delegate but I think you need to also have the delegate known to do that. There's also line 82 but that is specific to Raylib. The function it calls does not seem to be included in Raylib-cs. Also, rlImGui keeps using a Texture type but that is not defined in Raylib-cs or ImGui.NET. I assume I can substitute it with Texture2D from Raylib-cs but I'm not to the point in porting to see if Texture2D has the necessary fields/properties/methods.
-
Strange ImGui issue possibly related to ImGui.PushID()
ImGui.NET 1.87.3 (using the example implementation)
-
ImGui::ImageButton with a MonoGame Texture2D
If you use this example implementation for XNA/MonoGame, you can just use ImGuiRenderer.BindTexture() which returns an IntPtr.
-
Are there any low-level library options for creating desktop apps?
The only thing I could really think of is something like ImGui for C# (https://github.com/mellinoe/ImGui.NET) but I've never used it. It's going to give you some simple wrappers around ImGui (https://github.com/ocornut/imgui) but even this is going to lock you into the UI framework -- you can't just "draw a rectangle" per se and use it as a "control." Do note however this is an "immediate mode" GUI which is different from how most general desktop windowing systems work in "retained mode" (which are typically event driven, which saves on computing power to not draw the same stuff over and over).
- WinForms
- Free UI frameworks for NET .Core 6 Winforms?
- does anyone have an imgui cs renderer with a working text input?
ComputeSharp
-
ILGPU VS ComputeSharp - a user suggested alternative
2 projects | 27 Oct 2023
-
Is there a real time graphics llibrary in c#
A couple other options than what has been suggested so far: - TerraFX.Interop.Windows. Raw, blittable, 1:1 bindings for all Win32, D2D/D3D11/D3D12 APIs (there's also a version with Vulkan bindings). As close to doing #include as you can get in C#. This is my personal favorite, I use it in my own ComputeSharp library, and transitively we use it in the Microsoft Store too 🙂 - Silk.NET another version of high-performance bindings, more opinionated than TerraFX and with some additional helpers to make it a bit easier to use.
-
What can Go do that C# can't?
A hello world .NET console app with NativeAOT is 1.08 MB. Goes down to 1.08 MB with some tweaking. Goes below 1MB with more tweaking. I have a fully self-contained NativeAOT sample app that renders some fancy animated shaders with DX12 that's about 2MB in size.
-
C# and GPU programming
I dont think it's exactly what you're looking for, but I've found ComputeSharp to be a great C# GPU tool
-
Source Generator Debug always NulLReferecneException
Here's some: - MVVM Toolkit - PolySharp - ComputeSharp
- Rust bindings for Avalonia UI Framework
- [WinUI] High level 2D rendering library
-
What library should I use to make basic 2D graphics which is simple to use and that is able to quickly draw a bunch of particles (circles) on the screen with updating positions every frame? (Not the best description ever. I explain it better in the post's text)
If you don't mind being Windows only, I would also recommend trying out (shameless plug) ComputeSharp. You can find it on NuGet and it's available for UWP and WinUI 3 as well with ready to use XAML controls. The point is that it would allow you do your entire rendering via pixel/compute shaders, so it could basically run entirely on the GPU. That'd allow you to render even millions of particles with pretty good performance 🙂
-
What library to code a Screensaver?
Create a UWP or WinUI 3 applicaation and use the AnimatedComputeShaderPanel from ComputeSharp. The library lets you write shaders (ie. code to run on the GPU) entirely in C#, and handles all the logic to setup a DX12 animated swapchain, similar to Win2D. If you look at the repo you can also see a whole bunch of examples, which you can also try out for yourself. There's also several wiki pages with lots of info.
- GitHub - ComputeSharp: A .NET library to run C# code on the GPU through DX12 (Not Godot)
What are some alternatives?
Veldrid - A low-level, portable graphics library for .NET.
ShaderGen - Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
raylib - A simple and easy-to-use library to enjoy videogames programming
Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
CSharp-Unity-Compute-Shader - Create compute shaders for Unity with C#.
Monogame.ImGui - An ImGui.NET wrapper for Monogame
BrimsonFX - Image and video processing shaders for ReShade (convolutions, GPU Horn-Schunk/Lucas-Kanade, etc.)
godot-3d-mannequin - An Open Source 3d character and character controller for the Godot game engine
SharpDX
Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
dotnet - .NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.