Better HN
topnewbestaskshowjobs
Log inSign up

raysan

56 karma · joined Apr 2, 2020 (6y ago) · 10 submissions

I make videogames and tools, mostly in C. I also teach videogames making. I created raylib.
Submissions

1.

Raylib 5.5 – a library to program graphic apps in C(github.com ↗)

7 points · by raysan · 2y ago · discuss

comment 3y ago · link · parent

raylib is highly inspired by XNA so it has many similitudes to MonoGame but being plain C is not object-oriented like MonoGame.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Actually raylib was highly inspired by XNA, it was my main reference framework.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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!

comment 3y ago · link · parent

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.

9.

Raylib 4.5 Released(github.com ↗)

3 points · by raysan · 3y ago · discuss

10.

Raylib 3.0

5 points · by raysan · 6y ago · discuss