Skip to content

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

Notifications You must be signed in to change notification settings

astralchan/opengl-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published