OpenGL in python e04 - quad with GL_TRIANGLE_STRIP and window resize

preview_player
Показать описание
In this episode we are going to take a look on, how to draw a quad with GL_TRIANGLE_STRIP mode. We are also going to create a glfw callback function for window and OpenGL context resizing.

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

Thanks for this tutorial, I'm enjoying a lot!

bruno
Автор

Great tutorials man! Will you teach how to do transformations ?
Cheers from Brazil!

thekobold
Автор

Thanks for this tutorial! Very helpful!

kbRevolution
Автор

Attila Toth, great videos on openGL and Python. Could you also make a video on how to move the camera left -right, scaling in perspective projection. Thank you

ivanovsergiu
Автор

on my iMac the window-resize-function is wierd(the drawing area shrinks to the left bottom corner of the window), and I fix it by:
```
def on_resize(window, width, height):
w, h =
glViewport(0, 0, w, h)
```
instead of:
```
def on_resize(window, width, height):
glViewport(0, 0, width, height)
```

杜旺-cv
Автор

I didn't notice when you got ride of the def __init__
If someone else is still using this code inside a class, you gotta pass self._win to glfw.set_window_size_callback, like so:

glfw.set_window_size_callback(self._win, window_resize)

DsiakMondala
Автор

knowing how great were your previous tutorials. I was wondering if you have knowledge on Vulkan for Python. If so, do you plan on making tutorials on that?

NikolaNevenov
welcome to shbcf.ru