Advanced C++/Graphics Tutorial 2: Opening a window! @makinggameswithben
Advanced C++/Graphics Tutorial 2: Opening a window!  @makinggameswithben
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
Advanced C++/Graphics Tutorial 2: Opening a window!C++/Game Tutorial 10: Parameters and Forward Declarations!Bengine Game Challenge 1: Zombie Game! Pt. 1Advanced C++/Graphics Tutorial 4: First OpenGL Triangle!C++ Templates: The Hidden Power Youre Missing | Deep DiveAdvanced C++/Graphics Tutorial 39: 2D Rotations!C++/Game Tutorial 15: Checkerboard With 2D Array And Modulus!Advanced C++/Graphics Tutorial 40: BallGame, Variadic Macros, SRPC++/Game Tutorial 5: if/elseAdvanced C++/Graphics Tutorial 3: Input Processing!Advanced C++/Graphics Tutorial 32: SDL_ttf, SpriteFont!C++/Game Tutorial 25: Pointer Basics!
MakingGamesWithBen |

Advanced C++/Graphics Tutorial 2: Opening a window!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER