Raylib-cs
bgfx
Our great sponsors
Raylib-cs | bgfx | |
---|---|---|
18 | 71 | |
686 | 14,292 | |
- | - | |
8.0 | 9.3 | |
15 days ago | 6 days ago | |
C# | C++ | |
zlib License | BSD 2-clause "Simplified" 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.
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.
bgfx
- WebKit Switching to Skia for 2D Graphics Rendering
-
Is it possible and realistic to learn independent of an API?
Sort of, I'd recommend a modern higher level API. I'm not sure what the current recommended ones are (probably bgfx), but assuming the wrapper is "low level enough", then the concepts you learn are still going to apply.
-
Ask HN: Released games built on FOSS engines?
https://github.com/bkaradzic/bgfx for just that FOSS intermediate rendering library (includes Minecraft)
- Valve Says Counter-Strike 2 for macOS Not Happening, There Aren't Enough Players
-
The Ultimate Cross-Platform Rendering Engine?
BGFX: Pretty mature and easy to use with many backends.
- Cairo – Open-Source 2D Graphics Layer/API with Fonts and Many Back-Ends
-
Best graphics libraries for game development that are compatible with Apple Metal API?
bgfx. I have not used it, but I have heard good things about it.
-
LWJGL = SFML vs Allegro vs SDL vs Ogre vs ???
There's kind of a lack of this for C++ in 3D, I think it's often due to the necessity of a secondary scripting language in game engines with C++, which isn't necessarily needed in Java or C#. SFML is like that (but also 2D), Godot is similar (but more geared towards 2D). Ogre3D is an actual engine like I mentioned earlier, not sure how easy it is to use. Cocos2d is higher level, but is also 2D only. I'm not fond of SDL, it feels like a windowing library with slow old school immediate mode stuff attached, so it ends up not being good at the rest of the tacked on things. SDL is popular as a windowing library, and it's why you see it used everywhere (but the most notable uses of it aren't using their drawing capabilities), I often see bgfx thrown around, and for you it might be a good choice, though I have no experience with it.
-
Is it a crazy idea to create a 3D operating system?
Another route could be using an abstraction over Vulkan (faster, more efficient, more difficult): bgfx, dawn, magma, or wgpu (Rust).
-
The update we all want but will never get
now, java is actually quite a performant language and even if its not most of the performance bugs in mc are due to it being single threaded, inefficient chunk generation and optimizing, and it built ontop of opengl WHICH isn't much of a performance hit but its still ehh idk it doesn't matter that much (NOW SWITCHING THE GAME TO AN ENTIRELY DIFFERENT GRAPHICS API WOULD SUCK ASS TO DO (and vulkan is quite verbose :))) (AND also bgfx would probably be better due to it being an abstraction layer ontop of all the graphics apis so minecraft could target many depending on your platform (and also bedrock used to (or still does i dont know) use bgfx before they switched to just two (IF IM READING MC WIKI RIGHT BECAUSE IM NOT ENTIRELY SURE IF THEY USE BGFX STILL ?? SO THEY COULD STILL BE TARGETING MULTIPLE YET THEY JUST WROTE THEIR NEW SHIT BAD IDK))
What are some alternatives?
MonoGame - One framework for creating powerful cross-platform games.
GLFW - A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
raylib - A simple and easy-to-use library to enjoy videogames programming
DiligentEngine - A modern cross-platform low-level graphics library and rendering framework
WaveFunctionCollapse - Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
magnum - Lightweight and modular C++11 graphics middleware for games and data visualization
rlImGui-cs - A Raylib-cs integration with DearImGui
Ogre 3D - scene-oriented, flexible 3D engine (C++, Python, C#, Java)
SDL2-CS - SDL2# - C# Wrapper for SDL2
sokol - minimal cross-platform standalone C headers
FontStashSharp - C# port of https://github.com/memononen/fontstash
The-Forge - The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2