GLFW VS cray

Compare GLFW vs cray and see what are their differences.


A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input (by glfw)


A simple and easy-to-use library to enjoy videogames programming (by raysan5)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
GLFW cray
28 93
8,189 7,331
2.0% -
8.8 9.8
3 days ago 5 days ago
zlib License zlib License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.


Posts with mentions or reviews of GLFW. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-13.
  • [Handmade Network] How to write better (game) libraries
    Even if someone wants to use VS2008 for game development, it only took me a Google search to find which doesn't have any dependencies and a very permissive licence.
  • how do i include glfw in my code to make a window? | 2021-08-31
  • LibOS – Cross-platform OS features in C++ | 2021-08-23
    You seem to have had a similar impetus as I had 20 years ago when I created GLFW (though with a slightly different focus).
  • Is there a way to get japanese text input in raylib? | 2021-08-23
    Thanks for the detailed explanation. I'm afraid I didn't considered that use case for raylib and it would require some investigation to implement it... but raylib uses internally GLFW for desktop platforms and I've seen there is a related issue: About IME support by the browser, it should be investigated. Feel free to open an issue on raylib GitHub for further investigation!
  • Massive trouble with GLFW header inclusion. Can someone help?
    Looking at the actual code of the .h file, it looks pretty empty, and like it needs some extra files perhaps. For instance, functions are just filled with comments with some random explanations, so they are basically 1 line, which probably does nothing. Here you can take a look yourself on github.
  • Hey, I want start
    I would suggest using GLFW and Glad with C++ and use LearnOpenGL as a refrence
  • Compiling in MacOS M1 Chip (arm64) | 2021-07-22
    Now I read the logs and it seems the issue is with GLFW. I've found this:
  • Opengl(glfw) gears on termux x11 NO ROOT!! | 2021-07-19
    Clone the glfw repositiory - git clone
  • 3D Visualization with C++
    Use to get a window with an OpenGL context.
  • A better way of running Minecraft Without XWayland. Because I REALLY had nothing better to do with my life. (which is where I got some patches from) says there wasn't much upstream interest on merging the patches. But (the fix for the freezing issue) might be a good candidate for merging, though I don't know how GLFW people work, so I cannot comment on if it is properly upstreamable or not.


Posts with mentions or reviews of cray. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-15.
  • So, I just worked my way through The C Programming language by K&R, what are some good tutorials on game making for C (NOT C++) | 2021-10-15
    Here is some stuff. You could also look through the list of tutorials here. Raylib examples could also be something to take a look at. If you search around for a bit you could probably find some examples with glfw or freeglut + opengl and/or vulkan too. | 2021-10-15
    The [raylib]( library looks quite nice. And there are lots of [examples on GitHub](
  • Is it a waste of time learning OpenGL for a toy project?
    Consider also uses it for their intro to c++ course here
  • Best advice on what relatively high level 2D rendering library or framework to use and still maintain good performance?
    Raylib would be worth checking out, it's a very thin graphics library that will abstract the OpenGL stuff away. It's very limited compared to GL, but if you're just wanting to do 2D it'll probably be fine. SDL2 is another option.
  • Suckless game engine? | 2021-09-26
  • advice of game dev for C++
    If you want to start writing games from zero on C++, you need to find C++ libraries for game development first. Raylib for example. Or just set of libraries for every particular thing: GLFW, Vulkan or OpenGL for graphics, OpenCL or something else for sound, and etc.. Raylib btw has very good documentation from what I saw.
  • Help with building for Android | 2021-09-23
    Basically I am getting an error as below, I am following the guide here
  • Making a game in C++ | 2021-09-22
    Take a look at Raylib:
  • Making a 3d game from scratch with a code editor vs something like Unreal Engine. | 2021-09-20
    Alternatively, I think a good compromise for people who want more control over the inner workings of their game but don't want to use a full game engine is using a game framework like Monogame or Raylib. In our salad analogy, this is like buying a a good bag of lettuce, but growing your own toppings, dressings, etc.
  • SaveFileData() and LoadFileData()? | 2021-09-17
    both in the cheatsheet and in the code ?

What are some alternatives?

When comparing GLFW and cray you can also consider the following projects:

bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

SDL - Simple Directmedia Layer

Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

OpenSceneGraph - OpenSceneGraph git repository

Ogre 3D - scene-oriented, flexible 3D engine (C++, Python, C#, Java)

glad - Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.

Open-Source Vulkan C++ API - Open-Source Vulkan C++ API

imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

magnum - Lightweight and modular C++11 graphics middleware for games and data visualization

LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website

Allegro - The official Allegro 5 git repository. Pull requests welcome!