HNHacker News
TopNewBestAskShowJobs

raysan

56 karma · joined April 2, 2020

I make videogames and tools, mostly in C. I also teach videogames making. I created raylib.
submissionscomments
raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
raylib is highly inspired by XNA so it has many similitudes to MonoGame but being plain C is not object-oriented like MonoGame.
raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Actually, afaik most raylib users use it for 2d games/tools; it has a batching system to minimize draw calls that works very good with sprites (but also used with 3d shapes). About shaders, raylib provides a Mesh structure with some predefined vertex attribute arrays but you can use them for custom data if required. Also, you can use the lower-level library rlgl for a more fine grain control over the buffers.
raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Actually raylib was highly inspired by XNA, it was my main reference framework.
raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Thanks! Glad you are learning with it! That was the original objective of the library! Yeah, I learn about Tsoding recently and saw some of the videos! Really nice! About the issue with raygui you comment, it seems related to calling some raygui function before raylib InitWindow(), an OpenGL context is required to call rlSetTexture()... ok, I see you got to a similar conclusion, yeah, it could be that raygui as a separate library can not access the raygui library OpenGL context.

My recommendation is to compile raygui together with raylib, afair, the default raylib Makefile includes an option to add ragui module into raylib on compilation.

raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Thanks! raylib was originally created to teach gamedev programming basis to young arts students, I tried to keep it as simple as possible but still focused on code writing and able to learn low-level concepts.
raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Thank you very much! Glad you enjoy raylib! I know it's not that popular like the big engines but, actually, next month raylib will be 10 years old! :D

raylib supports several 3d model formats (obj, gltf/glb, iqm, m3d, vox), I think Blender has exporters for most of them. Note that some formats support must be enabled in raylib/src/config.h file!

raysan··on Raylib – A simple and easy-to-use library to enjoy video games programming
Hey! Just saw an increment in raylib github stargazers and raylib Discord members and someone point me to HN!

I'm the author of raylib, feel free to ask me about it if you want.