Skip to content

Instantly share code, notes, and snippets.

View chastitywhiterose's full-sized avatar
😀
Working on making games

Chastity White Rose chastitywhiterose

😀
Working on making games
View GitHub Profile
@chastitywhiterose
chastitywhiterose / main.c
Created June 7, 2023 21:22
Blank SDL program to test if compiling is working correctly.
#include <stdio.h>
#include <SDL.h>
int width=1280,height=720;
int loop=1;
SDL_Window *window;
SDL_Surface *surface;
SDL_Event e;
int main(int argc, char **argv)
{
window=SDL_CreateWindow("SDL Program",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,width,height,SDL_WINDOW_SHOWN );
#define GLEW_STATIC
#include <GL/glew.h>
#include <SDL.h>
#include <SDL_opengl.h>
SDL_Window* window;
SDL_GLContext context;
SDL_Event event;
GLuint vertexBuffer;
int loop=1;