astralchan / opengl-template

A basic template for making an openGL render in C for when I don't want to have to go through several tutorials again.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A basic reference for when I forget how to set up a rendering context in C with GLFW and libepoxy.

Dependencies

  • libepoxy-devel
  • glfw-devel
  • OpenGL drivers - e.g. mesa, nouveau, etc
  • pkg-config
  • IEEE / Open Group 1003.1-2017 (POSIX.1-2017) make utility - e.g. PDP make, GNU Make, BSD Make, etc
  • IEEE / Open Group 1003.1-2017 (POSIX.1-2017) c99 utility - e.g. GCC, Clang, etc
  • ISO / IEC 9899:1999 (C99) library - e.g. musl-libc, glibc, etc

Building

To build, run:

make

Then, to run the program:

./triangle

Screenshot

Screenshot of window with a triangle

About

A basic template for making an openGL render in C for when I don't want to have to go through several tutorials again.


Languages

Language:C 84.8%Language:Makefile 10.1%Language:GLSL 5.1%