Raylib-cs
rlImGui
Our great sponsors
Raylib-cs | rlImGui | |
---|---|---|
18 | 3 | |
686 | 208 | |
- | 15.9% | |
8.0 | 7.6 | |
14 days ago | 5 days ago | |
C# | C | |
zlib License | zlib 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.
rlImGui
-
Using raylib with Dear ImGui: Game Dev Debugging UI
include(cmake/CPM.cmake) function(raylib_imgui_setup_dependencies) message(STATUS "Include Dear ImGui") FetchContent_Declare( ImGui GIT_REPOSITORY https://github.com/ocornut/imgui GIT_TAG 277ae93c41314ba5f4c7444f37c4319cdf07e8cf) # v1.90.4 FetchContent_MakeAvailable(ImGui) FetchContent_GetProperties(ImGui SOURCE_DIR IMGUI_DIR) add_library( imgui STATIC ${imgui_SOURCE_DIR}/imgui.cpp ${imgui_SOURCE_DIR}/imgui_draw.cpp ${imgui_SOURCE_DIR}/imgui_widgets.cpp ${imgui_SOURCE_DIR}/imgui_tables.cpp) target_include_directories(imgui INTERFACE ${imgui_SOURCE_DIR}) include(cmake/CPM.cmake) message(STATUS "Include dbg-macro") cpmaddpackage( "gh:sharkdp/dbg-macro#fb9976f410f8b29105818b20278cd0be0e853fe8" )# v0.5.1 message(STATUS "Include fmtlib") cpmaddpackage("gh:fmtlib/fmt#e69e5f977d458f2650bb346dadf2ad30c5320281" )# 10.x message(STATUS "Include raylib") cpmaddpackage("gh:raysan5/raylib#ae50bfa2cc569c0f8d5bc4315d39db64005b1b0" )# v5.0 message(STATUS "Include spdlog") cpmaddpackage("gh:gabime/spdlog#7c02e204c92545f869e2f04edaab1f19fe8b19fd" )# v1.13.0 message(STATUS "Include rlImGui") FetchContent_Declare( rlImGui GIT_REPOSITORY https://github.com/raylib-extras/rlImGui GIT_TAG d765c1ef3d37cf939f88aaa272a59a2713d654c9) FetchContent_MakeAvailable(rlImGui) FetchContent_GetProperties(rlImGui SOURCE_DIR RLIMGUI_DIR) add_library(rlimgui STATIC ${rlimgui_SOURCE_DIR}/rlImgui.cpp) target_link_libraries(rlimgui PRIVATE imgui raylib) target_include_directories(rlimgui INTERFACE ${rlimgui_SOURCE_DIR}) endfunction()
-
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.
-
raylib 4.2 released!
raylib extra libraries cleanup: raylib has been on diet and all the extra libraries included on previous releases have been removed from raylib. Now raylib only includes the original 7 raylib modules: rcore, rlgl, rshapes, rtextures, rtext, rmodels and raudio. But no worries, extra libraries have not been deleted, they have been moved to their own repos for better maintainability and more focus on its functionality. The libraries moved out from raylib repo are: raygui, physac, rmem, reasings and raudio (standalone mode). On that same line, a new amazing GitHub group: raylib-extras has been created by @JeffM2501 to contain raylib extra libraries as well as other raylib add-ons provided by the community. Jeff has done an amazing work on that line, providing multiple libraries and examples for raylib, like custom first-person and third person camera systems, Dear ImGui raylib integration, multiple specific examples and even a complete RPG Game Example! Great work Jeff! :D
What are some alternatives?
MonoGame - One framework for creating powerful cross-platform games.
physac - 2D physics header-only library for videogames developed in C using raylib library.
raylib - A simple and easy-to-use library to enjoy videogames programming
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
rmem - raylib memory pool and objects pool
rlImGui-cs - A Raylib-cs integration with DearImGui
reasings - A simple easings library based on Robert Penner's functions
SDL2-CS - SDL2# - C# Wrapper for SDL2
miniaudio - Audio playback and capture library written in C, in a single source file.