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
- Host: GitHub
- URL: https://github.com/malwarebo/graphics
- Owner: malwarebo
- Created: 2024-08-01T03:35:34.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-12T04:01:53.000Z (11 months ago)
- Last Synced: 2025-09-05T17:03:02.397Z (10 months ago)
- Topics: c, glut, graphics-programming, opengl
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```