An open API service indexing awesome lists of open source software.

https://github.com/malwarebo/graphics

Graphics programming using C
https://github.com/malwarebo/graphics

c glut graphics-programming opengl

Last synced: 4 months ago
JSON representation

Graphics programming using C

Awesome Lists containing this project

README

          

# Graphics Programming

A fun graphics repository that uses `C` as programming language with OpenGL and GLUT. The project is divided into multiple programs, each demonstrating a different concept.

## Prerequisites

- OpenGL and GLUT libraries (install according to your OS)
- C compiler (gcc or clang)

## Build and run the programs

```bash
gcc -framework OpenGL -framework GLUT -framework Cocoa -DGL_SILENCE_DEPRECATION .c -o

$ ./
```

### For example to build and run the rotating_hexagon.c program:

```bash
gcc -framework OpenGL -framework GLUT -framework Cocoa -DGL_SILENCE_DEPRECATION rotating_hexagon.c -o rotating_hexagon

$ ./rotating_hexagon
```