Raylib-cs
SDL2-CS
Our great sponsors
Raylib-cs | SDL2-CS | |
---|---|---|
18 | 7 | |
686 | 995 | |
- | - | |
8.0 | 4.5 | |
16 days ago | 4 months ago | |
C# | C# | |
zlib License | GNU General Public License v3.0 or later |
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.
Raylib-cs
- How do I get started with Raylib?
-
How to add graphics
Glad I could help! Just one more disambiguation -- it's not built in. raylib is created by Ray/raysan5,and the C# bindings are created primarily by Chris Dill. Dill has packaged the bindings as a NuGet package, which you can add using the command line. The command downloads the package from the online repository and installs it.
-
Where to find more information on using languages beside c++?
Generally the respective Github pages for the binding would be a good starting point so for C# go here if you have not already https://github.com/ChrisDill/Raylib-cs
-
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.
-
Simple 2D graphics framework for C#/Java
You can go with raylib: https://github.com/ChrisDill/Raylib-cs
-
If you were to start a new project that require OpenGL 3D graphics on C# What you will choose on 2022?
I've been using raylib-cs C# wrapper for raylib and have been quite happy with both. raylib is a relatively thin layer on top of OpenGL, especially if you use the rlgl functions.
-
Any official C# wrapper?
Not sure about "official", but I use raylib-cs and it works perfectly for me.
-
Help!
Raylib-cs is very easy to use: https://www.raylib.com/ https://github.com/ChrisDill/Raylib-cs It's a binding to the Raylib C library.
-
I made a space invaders game in C# using all of my absolute-beginner knowledge
If you're looking to make simple games with C#, consider looking into MonoGame or Raylib-cs. OP's use of Windows Forms could prove hard to manage with a larger game project, but it is a pretty novel approach!
-
What are some good tutorials for making 2D games with C# in visual studio without a game engine?
If you find the structure of MonoGame too opaque or technical -- totally reasonable given that you're learning your way around -- check out Raylib-cs, a C# wrapper for the C games programming library raylib. It doesn't get much simpler.
SDL2-CS
-
Using ImGui.NET with SDL2-CS?
I'm building a mini game engine using SDL2-CS as a way to learn about things like P/Invoke. (I already have quite a bit of experience with C++ and SDL2)
-
Sometimes you just gotta do what you gotta do. Doesn't mean it will be pretty though...
Source: SDL2-CS
-
Anyone able to get SDL2 working with C#?
Download, build and add a reference to this SDL2 C# binding by @flibitijibibo: (https://github.com/flibitijibibo/SDL2-CS)
-
SDL2 + OpenGL in C#?
Is there a way for me to use SDL2 with OpenGL and C#? The SDL2 C# bindings I'm using don't seem to have bindings for the OpenGL commands. Honestly I just want a quick way to draw 2D primitives with fragment shaders (I don't need vertex shaders). I've worked with OpenTK, but it seems counterintuitive to mold it into a program where you wanna just make draw calls without worrying about Vertex Arrays. Is there any way for me to get access to fragment shaders in SDL2 with C#?
-
I need something like Pygame + PyOpenGL or LWJGL, but for C#/.NET
https://github.com/flibitijibibo/SDL2-CS for SDL
-
What are some good tutorials for making 2D games with C# in visual studio without a game engine?
I'd recommend using an SDL2 wrapper for C# (possibly this one) and start building your system out piece by piece. You'll learn more from this attempt than any book, course, or existing game engine could ever teach you.
-
Do somebody use SDL for C#?
Hi. I wrote my own little game in python. Now I'd like to do the same in C# to learn the language. Pygame is a binding of SDL so I got interested in it. I googled and found two bindings of SDL for C#: https://github.com/flibitijibibo/SDL2-CS https://github.com/babelshift/SharpDL But I see in internet that SDL is very unpopular. Do somebody of you use SDL in C# for game developing? I prefer SDL over Unity or Monogame for now, because I'd like to program as low level as possible.
What are some alternatives?
MonoGame - One framework for creating powerful cross-platform games.
OpenTK - The Open Toolkit library is a fast, low-level C# wrapper for OpenGL, OpenAL & OpenCL. It also includes windowing, mouse, keyboard and joystick input and a robust and fast math library, giving you everything you need to write your own renderer or game engine. OpenTK can be used standalone or inside a GUI on Windows, Linux, Mac.
raylib - A simple and easy-to-use library to enjoy videogames programming
SharpDL - 🕹️ Sharp DirectMedia Layer (XNA-like Framework for SDL)
bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
ImGui.NET - An ImGui wrapper for .NET.
WaveFunctionCollapse - Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
rlImGui-cs - A Raylib-cs integration with DearImGui
Silk.NET - The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.
FontStashSharp - C# port of https://github.com/memononen/fontstash
Metalkons-Slots - Slot machine game in the console