This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc amdsdl.c -lGLU -lGL -lSDL2 | |
#include <GL/gl.h> | |
#include <GL/glu.h> | |
#include <SDL2/SDL.h> | |
#define WIDTH 640 | |
#define HEIGHT 480 | |
static SDL_Window *window; |