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

Опубликовано: 19 Сентябрь 2021
на канале: 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/...


Смотрите видео [Ep. 4] [Setup] SDL Mac (Including M1) Setup with Simple OpenGL Application | Introduction to SDL2 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Mike Shah 19 Сентябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 25,833 раз и оно понравилось 283 посетителям.