C OpenGL

Open-source C projects categorized as OpenGL

Top 23 C OpenGL Projects

  • raylib

    A simple and easy-to-use library to enjoy videogames programming

    Project mention: 2d graphics library for arcade games | reddit.com/r/learnjava | 2022-11-29

    Raylib is nice as well, but I haven't tried out the Java bindings: https://www.raylib.com/ https://github.com/raysan5/raylib/blob/master/BINDINGS.md

  • GLFW

    A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input

    Project mention: I have trouble creating window In Ubuntu | reddit.com/r/vulkan | 2022-11-25

    I recall an issue specific to Wayland where windows only appear after the first command buffer is submitted. https://github.com/glfw/glfw/issues/1398

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • Craft

    A simple Minecraft clone written in C using modern OpenGL (shaders).

    Project mention: Are C programs only used for terminal based interaction? | reddit.com/r/cprogramming | 2022-11-17

    When this subject comes up, I always like to link to one of the many Minecraft clones written in C. https://github.com/fogleman/Craft

  • MangoHud

    A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb

    Project mention: I really dig the new Steam Overlay Graph but the right corner feels like a waste-of-space. It would be nice to see a Clock and/or Estimated Battery Time. | reddit.com/r/SteamDeck | 2022-11-15

    It's just mangohud. How to configure it is documented on its github page, here.

  • cute_headers

    Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games

    Project mention: How many colors are too many colors for Windows Terminal? | news.ycombinator.com | 2022-05-14

    - https://github.com/RandyGaul/cute_headers/blob/master/cute_s...

    It's a simple and relatively straightforward approach that a sufficiently bright programmer would come up in their own while looking at the design constraints though, so overall I find it a bit meaningless to find the ultimate person for the "original idea".

  • glad

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

    Project mention: CGL (C Graphics Library) is a opengl based highlevel library for recreational coding / demo scenes / prototyping / small games / experimentation | reddit.com/r/opengl | 2022-09-28

    I installed glfw3 through vcpkg on Windows and used the GLAD generator at https://glad.dav1d.de/ to generate a loader for OGL 4.6. The tile renderer example builds, but it just displays a black window without drawing anything.

  • Remotery

    Single C file, Realtime CPU/GPU Profiler with Remote Web Viewer

    Project mention: Remotery - Single c file, realtime cpu/gpu profiler with remote web viewer | reddit.com/r/github_trends | 2022-08-19
  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

  • permafrost-engine

    An OpenGL RTS game engine written in C

    Project mention: are there tutorials for code organization for games in C? | reddit.com/r/gamedev | 2022-01-09
  • glew

    The OpenGL Extension Wrangler Library

    Project mention: what is the equvalint packages of apt-get build-essential libgl1-mesa-dev in pacman | reddit.com/r/archlinux | 2022-04-12

    I found no package with it. Try asking at their Github project: https://github.com/nigels-com/glew

  • GCanvas

    A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎) https://alibaba.github.io/GCanvas

    Project mention: Change the color inside of the drawing ??? | reddit.com/r/reactnative | 2022-08-03

    You probably want to use something canvas-like, maybe this: https://github.com/alibaba/GCanvas

  • herebedragons

    A basic 3D scene implemented with various engines, frameworks or APIs.

  • cglm

    📽 Highly Optimized Graphics Math (glm) for C

    Project mention: Portable SIMD library | reddit.com/r/C_Programming | 2022-11-15
  • Allegro

    The official Allegro 5 git repository. Pull requests welcome!

    Project mention: Looking for a very basic 2d graphics library | reddit.com/r/C_Programming | 2022-10-05

    allegro 5 is quite alright with fonts

  • freetype-gl

    OpenGL text using one vertex buffer, one texture and FreeType

    Project mention: Rendering text | reddit.com/r/opengl | 2022-05-01

    To render text in my own engine, I rasterise TTF files. I use FreeType to do most of the work for me and use FreeType-GL to take care of packing the glyphs into a single texture (as well as handling UTF-8 text).

  • glfw

    Go bindings for GLFW 3 (by go-gl)

    Project mention: 3D graphics library | reddit.com/r/golang | 2022-08-28

    I'm looking for something that's relatively low-level (not a game engine) but preferably abstracts some of the boilerplate away and is cross-platform. Something like go-bgfx would have been perfect for me, but it has been long abandoned. The only real remaining option appears to be the glfw-bindings go-gl/glfw. Otherwise, I could make use of cgo to wrap some c/c++ code myself. I'm somewhat hesitant to go with glfw, because openGL isn't supported on all platforms (but realistically, I'm not going to publish anything that needs to go on mobile), and doesn't support raytracing, which I eventually want to mess around with too.

  • space-shooter.c

    A cross-platform, top-down 2D space shooter written in C using only platform libraries.

    Project mention: Good open source games written in C? | reddit.com/r/C_Programming | 2022-09-04
  • mlt

    MLT Multimedia Framework

    Project mention: what does this error mean and what can i do to fix it? | reddit.com/r/kdenlive | 2022-11-23
  • glava

    GLava - OpenGL audio spectrum visualizer

    Project mention: How do I keep glava running after the terminal closes? | reddit.com/r/linux4noobs | 2022-06-17

    [glava](https://github.com/jarcode-foss/glava) closes when I close the terminal, even after running it with the appended `&`. How to keep it running?

  • gl

    Go bindings for OpenGL (generated via glow)

  • Quake3e

    Improved Quake III Arena engine

    Project mention: Q3 source port help | reddit.com/r/quake | 2022-09-03
  • antons_opengl_tutorials_book

    Anton's OpenGL 4 Tutorials book - Demo Code

    Project mention: Question about GLFW / GLEW in C with shaders | reddit.com/r/CodingHelp | 2022-02-18

    So, I decided to try out this code, which renders a purple triangle. It works fine, but then I wanted to read in files rather than defining the shaders in the code. So, I made a function that reads in a file:

  • taisei

    A free and open-source Touhou Project fangame

    Project mention: How does ZUN program the spellcards | reddit.com/r/touhou | 2022-11-03

    Taisei Project, which is a Touhou fangame, might be of good help; its source code is available to the public. It's written in C though.

  • PortableGL

    An implementation of OpenGL 3.x-ish in clean C

    Project mention: Olive.c: a simple graphics library that does not have any dependencies | news.ycombinator.com | 2022-09-21

    Yeah PortableGL will never be completely fully featured, not even for OpenGL 3.3 since I'll definitely never do the geometry shader and probably not the transform feedback. But specifically it'll never have the earlier immediate mode stuff, or some of the big 4.0 stuff like the tessellation shaders. I have been meaning to add the DSA functions where they make sense. They'd be really simple to implement.

    Actually a few days ago someone sent me a pull request adding an interesting project to my README


    So now if I were to try to sum up all the OpenGL software implementations I can think of,

    TinyGL (and modern improved forks) = OpenGL 1.1-1.3 ish

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-11-29.

C OpenGL related posts


What are some of the best open-source OpenGL projects in C? This list will help you:

Project Stars
1 raylib 11,122
2 GLFW 9,862
3 Craft 9,511
4 MangoHud 4,250
5 cute_headers 3,644
6 glad 2,789
7 Remotery 2,408
8 permafrost-engine 2,310
9 glew 2,179
10 GCanvas 1,787
11 herebedragons 1,648
12 cglm 1,536
13 Allegro 1,494
14 freetype-gl 1,463
15 glfw 1,335
16 space-shooter.c 1,289
17 mlt 1,165
18 glava 1,006
19 gl 944
20 Quake3e 914
21 antons_opengl_tutorials_book 805
22 taisei 698
23 PortableGL 641
Workflow assistant built for devs & their teams
Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.