Uploaded August 2014 | Updated December 2026, 3 hours ago
Today we start writing our game engine by opening our window! We have a long and exciting road ahead :D
NOTE: If you are on a mac, you may have to add the following lines after SDL_Init:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
Otherwise it may default to a 2.1 context.
Donate Via Paypal: goo.gl/ifsOMt
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com
Today we start writing our game engine by opening our window! We have a long and exciting road ahead :D
NOTE: If you are on a mac, you may have to add the following lines after SDL_Init:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
Otherwise it may default to a 2.1 context.
Donate Via Paypal: goo.gl/ifsOMt
Twitter: twitter.com/ChillstepCoder
Seed Of Andromeda Channel: youtube.com/user/DubstepCoder
Seed Of Andromeda Website: seedofandromeda.com










