Skip to content

Instantly share code, notes, and snippets.

View s-ol's full-sized avatar

s-ol s-ol

View GitHub Profile
@s-ol
s-ol / .gitignore
Last active February 5, 2020 10:00
node_modules
dist
@s-ol
s-ol / glitch_cube.c
Last active April 11, 2020 22:42
program interpreting random parts of itself as textures for a cube
// $ gcc -o glitch_cube glitch_cube.c -lglfw -lGL -lGLU
#include <GLFW/glfw3.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void cubeFaceX(float side) {
glNormal3f(side, 0.0f, 0.0f);