OpenGL with C++ 1: Intro and Setup

  Рет қаралды 20,570

GetIntoGameDev

GetIntoGameDev

Күн бұрын

Пікірлер: 38
@brown.paperbag
@brown.paperbag 10 ай бұрын
omg i started taking coding seriously about 2 weeks ago, taught myself c++ and had been trying to learn openGL, but have been at a road block for so long trying to just set everything up. all the resources i found were either in visual studio not vs code, didn’t work for me, or just confused me even more. i got to the point where i had a window, and some stuff but finding this serious is truly a god send, it’s like exactly what i’ve been looking for
@GetIntoGameDev
@GetIntoGameDev 10 ай бұрын
Welcome!
@cryptigo
@cryptigo 3 ай бұрын
Learning OpenGL as a new programer is really bold and impressive
@ducksreviewtech3396
@ducksreviewtech3396 Ай бұрын
I just want to say this is the only tutorial that has worked for me. Thanks.
@MeowMeowRanger
@MeowMeowRanger 12 күн бұрын
Concise and considering (from the perspective of beginner). Greatest openGL tutorial on youtube.
@UhGoomba
@UhGoomba 8 ай бұрын
your channel has everything I want to learn, in the right ways
@Nallu_Swami
@Nallu_Swami 6 ай бұрын
Incase you still get the error for glfw library not found , edit the cmake and add this "find_package(glfw3 3.3 REQUIRED)" in between "target_include_directories(Mathematics PRIVATE lib) target_link_libraries(Mathematics glfw)"
@hi_8983
@hi_8983 4 ай бұрын
Windows user here. I installed mingw-w64 via MSYS2, added it to PATH, and used its pacman interface to install gcc, gdb, cmake, and glfw. I of course still needed the glfw3, glad, and khr headers as shown in the video, but in terms of binaries, everything worked immediately. I did pass "glfw3" instead of "glfw" as the argument to target_link_libraries, however. Hope this is helpful!
@GetIntoGameDev
@GetIntoGameDev 4 ай бұрын
Thanks, very descriptive!
@outofbounds7441
@outofbounds7441 7 ай бұрын
I have an error when following at 18:11, "GLFW/glfw3.h: No such file or directory" coming from gcc. As another thing, my glfw doesn't have any folders with "lib" in the name. Can you help? EDIT: FYI I am using Windows
@GetIntoGameDev
@GetIntoGameDev 7 ай бұрын
Are you following this tutorial code? In this tutorial I use cmake, in which case it should absolutely be able to locate the glfw header, provided the folder structure has been set up properly. I think in the github repo I moved dependencies outside to reduce repeated code. On the other hand, windows may have trouble finding the lib files, I’ve got a video somewhere on my channel where I go through including glfw source code directly using git submodule. Glfw doesn’t have lib? Sometimes it’s called bin instead, or actually needs to be compiled from source using cmake. Also, I believe there’s a regular glfw release and a “developer” release. The developer one is what you want. Hope that helps!
@Madz-p4l
@Madz-p4l 23 күн бұрын
absolutely love your videos 🤍
@GetIntoGameDev
@GetIntoGameDev 23 күн бұрын
Thankyou!
@FloorMann
@FloorMann 4 ай бұрын
I'm here to say that using batch files on Windows will work. I did this entire tutorial because CMake wasn't working. Below is my `build.bat` file if you want to copy. @echo off if not exist dist mkdir dist g++ -Idependencies -Llib -o dist\YourProgramName.exe src\*.cpp src\glad.c -lglfw3 -lgdi32 -lopengl32 .\dist\YourProgramName.exe Note that some things should be changed based on your actual project.
@trys10studios
@trys10studios 5 ай бұрын
Numerical Analysis book on top of a drum pad, I think someone's learning Danny Carey.
@arifnishan5646
@arifnishan5646 3 ай бұрын
[build] LINK : fatal error LNK1104: cannot open file 'glfw.lib'
@pankajsadhukhan2686
@pankajsadhukhan2686 6 ай бұрын
Hello, I'm setting up this in my windows. I have done all the steps. But at the end when I tried to run .cpp file it gives me error that "-lglfw cannot find". All other libraries linking are working fine. but I can't able to resolve this error. What to do?
@GetIntoGameDev
@GetIntoGameDev 6 ай бұрын
Are you including the lib files and instructing visual studio to look for them? There’s a good amount of info online on how to set this up, eg. learnopengl.com
@babilman2337
@babilman2337 Жыл бұрын
Will you continue thisnseries anda what Will you make.good luck on the making of tuts tho
@GetIntoGameDev
@GetIntoGameDev Жыл бұрын
Yes it's continuing! I'm thinking one video per week or something like that, for the final project I'll be making some sort of first person shooter.
@babilman2337
@babilman2337 Жыл бұрын
@@GetIntoGameDev Good luck on it!i i Will follow the tuts wheb i finish my project
@mrstanlez
@mrstanlez 8 ай бұрын
I'm using Debian 12 with gcc amd64, and get error as: [build] /usr/bin/ld: cannot find -lglfw: No such file or directory. FIX: sudo apt-get install libglfw3-dev
@GetIntoGameDev
@GetIntoGameDev 8 ай бұрын
Excellent! Glad you fixed it 🙂
@mrstanlez
@mrstanlez 8 ай бұрын
@@GetIntoGameDev Thank you. Any future thoughts about new 2D game series with OpenGL ? Will be very helpful.
@bhargavkumar9778
@bhargavkumar9778 Жыл бұрын
Hi, First of all thanks a lot for your videos. If this course covers image warping using opengl. I recently started opengl in my project my work is for using image warping using open gl for AR HUD.
@raze3055
@raze3055 Жыл бұрын
cannot find -lglfw: No such file or directory every time! help!
@GetIntoGameDev
@GetIntoGameDev Жыл бұрын
which system are you in? Did you try running the finished code in the github repo?
@torcat
@torcat Жыл бұрын
@@GetIntoGameDev Same here! I am following the tutorial but I got "ld: library 'glfw' not found" I'm using Sonoma with clang 15.0.0 arm64-..... 23.0.0
@raze3055
@raze3055 Жыл бұрын
@@GetIntoGameDev windows 11, using the code from the github repo, clang 14.0.3 x86_64-w64-windows-gnu
@garydeschaines
@garydeschaines Жыл бұрын
@@raze3055 Have you tried editing CMakeLists.txt file to insert after the target_include_directories statement the following (assuming CMake version >= 3.13): target_link_directories(hello_window PRIVATE dependencies/lib ) and changed glfw to glfw3 in the subsequent target_link_libraries statement?
@JakubSK
@JakubSK 2 ай бұрын
This is why no one uses C++, it's super annoying with the libraries. It's just error after error after error... to infinity...
@nonnullptrhuman504
@nonnullptrhuman504 2 ай бұрын
skill issue my friend. after you've getting hang of it, it will not be a problem 😅
@JakubSK
@JakubSK 2 ай бұрын
@@nonnullptrhuman504 it’s ok ChatGPT wrote my game for me. We’re good 👌
Git Submodule: Setting up CMake Projects in Windows
11:47
GetIntoGameDev
Рет қаралды 2,7 М.
OpenGL with C++ 2: What are Shaders?
32:47
GetIntoGameDev
Рет қаралды 5 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 971 М.
I Made a Graphics Engine (again)
8:27
Zyger
Рет қаралды 180 М.
A New Era for C and C++? Goodbye, Rust?
9:08
Travis Media
Рет қаралды 115 М.
I Made a Drawing Software From Scratch (C++ & OpenGL)
11:05
iamwassim
Рет қаралды 41 М.
Mini Project: How to program a GPU? | CUDA C/C++
12:53
0Mean1Sigma
Рет қаралды 30 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 157 М.
before you code, learn how computers work
7:05
Low Level
Рет қаралды 553 М.
PATH TRACER made by 15-YEAR-OLD in C++ OpenGL! // Code Review
36:56