#2 Intro to Modern OpenGL Tutorial: OpenGL Windows

preview_player
Показать описание
In this video, we put some of our libraries to use and setup windows which can be drawn in using OpenGL.

Рекомендации по теме
Комментарии
Автор

Your illustration of double buffering deserves a god damn grammy award. Thank you!

RShelper
Автор

Best tutorial so far I have seen. Everything explained like it should be. I always have problem with new libs "How it actually works" and spends hours for reading about it.

Hato
Автор

I'm going sleep, went to bed at 5, woke up at 10, gonna wake up for tea, gonna continue this <3 Thanks Benny

_daniel.w
Автор

Firs of all thanks Benny for making these videos. I'm pretty sure it hasn't been done for modern opengl in such a comprehensive way.
Secondly I got an error error LNK2019: unresolved external symbol _SDL_main referenced in function _main
This just means you have to reformat your main to "int main(int argc, char* args[])", or "#undef main" after your sdl include.

Grndr
Автор

I really like your style of tutorial. I have watched a few of these openGL style videos.. and you approach it at the perfect speed, and get to compile, and test you work enough times without going off on strange tangents, or adding a million methods.

Codethe_Road
Автор

thus far in the series for what you declared the intentions for in the first video, it's been fantastic and i am extremely grateful for what you have done. which is create a clear and concise series (thus far as i haven't seen the rest yet). Thank You.

Phantasmio
Автор

You have absolutely no idea how long it took me to find a good tutorial and when I came across you I was able to create this with only one error (it was me being stupid and it was syntax so I figured it out). Keep up the incredible work.

thegamecouncil
Автор

Hey man, I just wanted to say thanks for explaining what "let's swap the buffers" meant. I heard people saying this on other tutorials, but they were never explaining what it does. I really like your style of making tutorials. Keep it up!

fschutt
Автор

Thanks a lot for these tutorials; I literally couldn't find another tutorial out there with such clear and easy to follow instructions for just setting up OpenGL.

nicksohacki
Автор

So far Benny...these tutorials have been very clear and concise! I'm following along just perfectly fine. Thank You!

joshrandall
Автор

Those of you who get error LNK2019 at 4:00 and/or 22:20, this is an issue of linking 64-bit libraries to a 32-bit project. Looks like Visual Studio creates a project that targets 32-bit platforms. To change these settings so that your project can run on a 64-bit platform using 64-bit libraries, simply google the following keywords, open the first link and follow those few easy steps provided by Microsoft to change the Project Configuration;

"How to: Configure Visual C++ Projects to Target 64-Bit Platforms"

and that should fix your problem as it did for mine. However note that there is one more minor change that you need to make in your project directory before compiling it, otherwise you'll get a compiling error telling you that glew32.dll is missing. You need to move the dynamic libraries glew32.dll and SDL2.dll you copied earlier to /Debug folder, from this folder into the x64/Debug folder that is created after you switch to a 64-bit project. You'll also see that ~.exe, ~.ilk and ~.pdb files have been moved into this folder automatically. 

Btw I use Visual Studio 2013.

Hope it helps ^.^

Hiccup-vqkw
Автор

Even though this video was eight years ago, It was great and didn't move too fast!

flybywre
Автор

If u r using Visual Studio Release x64 bit mode. In the main.cpp, initialize the main function as
int main(int argc, char* argv[])
otherwise you might get a linking error for "SDL2main"

chaluvadi
Автор

Great work man, it’s a pain learning OpenGL but you make it seem easy. Great videos!

python_n_c
Автор

Fantastic stuff, man! Easy to follow and actually works. Well done!

WarrenMarshallBiz
Автор

Amazing Tutorial!!! I've always known SDL2 and I tried to learn OpenGL using the LazyFoo website or other YouTube videos, but they don't explain much, and if they try to explain OpenGL in detail they teach glut which I don't want to use.
You also actually explain in detail every aspect of each class member, for example I've always had no clue what glContext was for until I watched this video. 
Keep up the great work!

coreycollins
Автор

Thanks for explaining *why* you do everything and in a very clear manner.

raskolnikov
Автор

Can't wait for the next episode Benny!

pancakesimone
Автор

it took hours! just to get it running but in the end I prevailed like a boss.
first problem was with the linker but i solved it after I change the lib from x64 to x32 (x86)
second problem was that annoying lnk2019 solved after adding #undef main after the include files
third I overlook some of benny's code and ended up with a bug, I forgot a ! on a while loop.
all is well and done, thanks benny.

SuperEpiclife
Автор

Important note for those getting LNK2019 errors for "main". Use

int main(int argc, char *args[]) {
....
}

as SDL_main.h is included automatically from SDL.h which is going to cause the LNK2019 if you copied what Benny put for the main function.

The culprit is:
#define main SDL_main

johnwong
join shbcf.ru