https://www.reddit.com/r/opengl/comments/3avqr7/how_to_learn_opengl_with_c/
I want to learn opengl but I use C. I know opengl is C but all the tutorials I find use C++.
re:
The subreddit sidebar has several good tutorials listed. The penultimate one (openglbook.com) is actually in C, rather than C++.
https://openglbook.com/
A la fin de chaque tuto tu as le lien vers le code source en C
https://github.com/openglbook/openglbook-samples
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/freeglut.h>
#define WINDOW_TITLE_PREFIX "Chapter 1"
int CurrentWidth = 800,
CurrentHeight = 600,
WindowHandle = 0;
void Initialize(int, char*[]);
void InitWindow(int, char*[]);
void ResizeFunction(int, int);
void RenderFunction(void);
int main(int argc, char* argv[])
{
Initialize(argc, argv);
glutMainLoop();
exit(EXIT_SUCCESS);
}