Modern OpenGL programming in Python - part 02 - creating a GLFW window

preview_player
Показать описание
Initializing the GLFW library and creating a GLFW window and set its context to OpenGL.Creating a loop to actually display the window, and to detect poll events and swap its buffers.

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

Good video, straight to the point followed by a good code explanation very good job!

pbentesio
Автор

"ImportError: Failed to load GLFW3 shared library."

Installing GLFW via pip does not give you the actually GLFW3 lib, just the Python bindings. I am assuming you already had it installed and in your PATH so this issue did not surface for you while making the tutorial.

For those running into this issue you need to:
2). Create a directory and place the lib-mingw and include directories in it from the zip you downloaded
3). Do: CTRL+R, enter "systempropertiesadvanced", click "Environment Variables".
4). Under "System Variables" click new, name it: "PYGLFW_LIBRARY", then browse to the glfw3.dll file.
5). Click ok.

You may need to restart PyCharm for it to refresh the Environment Variables, then everything should work correctly.

Great tutorial series, I'm just getting into OpenGL (Before this I made a cube that can rotate on keypress with Pyglet haha) and was glad to find an up to date series like this.

anthony_kane
Автор

Do you know why I get the error “no module named ‘glfw’ “ ? The installation went fine...

caoanle
Автор

have you put these code in github? can i find you in github?

stanhan
Автор

I'm sorry. Not to offend you, but you kind of type slow. Please dont be mad towars this reply, but can you maybe type faster? That would be greatly appreciated:D

christiansadykbayev
welcome to shbcf.ru