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

Опубликовано: 11 Июнь 2026
на канале: MakingGamesWithBen
112,744
1k

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: http://goo.gl/ifsOMt

Twitter:   / chillstepcoder  
Seed Of Andromeda Channel:    / dubstepcoder  
Seed Of Andromeda Website: http://www.seedofandromeda.com/