[Ep. 4] [Setup] SDL Mac (Including M1) Setup with Simple OpenGL Application | Introduction to SDL2

Published: 19 September 2021
on channel: Mike Shah
25,833
283

►SDL2 Playlist:    • SDL2 Simple Directmedia Layer  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Git Repo: https://github.com/MikeShah/SDL2_Tuto...
►Lesson Description: In this lesson I will show you how to setup SDL2 on the Mac operating system using the clang++ compiler. I'll intentionally make a few mistakes so you can see each step of the build process and setup your executable. Additionally, we'll setup OpenGL for use on the Mac. Note that Mac has deprecated OpenGL to a maximum version of 4.1.

Checkout this video if you want to see the source code for setting up OpenGL:    • [Ep. 13] First SDL OpenGL Window with...  

00:00 Goal to Setup SDL2 on command line for Macs
00:43 Downloading SDL2
1:13 Installing the SDL2 Framework
2:13 Obtaining a sample SDL2 and OpenGL program
2:48 Using clang++
3:36 Setting up the Include path to SDL.h
4:45 Fixing the header path to SDL.h
5:23 Setting up Glad
6:10 Fixing linking errors by compiling glad.c
6:55 Linking in SDL2
7:36 Successfully running our SDL2 program
8:06 Naming our binary executable
8:42 Querying your GPUs on your system

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!
►Join our free community: https://courses.mshah.io/communities/...


Watch video [Ep. 4] [Setup] SDL Mac (Including M1) Setup with Simple OpenGL Application | Introduction to SDL2 online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 19 September 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 25,833 times and liked it 283 visitors.