In the past tutorials about Qt and OpenGL we saw how to deal with some basic tasks.
Let's see this time something a bit more advanced with the QOpenGLWidget class in order to display a scene from a window with a shape.
Playing with colors can be fun but what about textures?
What about something really realistic?
In this OpenGL tutorial for Qt we are going to apply a texture on our dear triangles.
As we saw, in the last tutorial about using a VAO and VBO to handle 2 different objects on the scene with OpenGL, it's possible to have 2 arrays of vertex: one to manage the position and one to deal with the color.
VAO (Vertex Array Object) and VBO (Vertex Buffer Object) were introduced to help programmers since OpenGL 3.0.
So it’s not a recent features but if you just started learning OpenGL it could be very complex to understand.
With Android we haven't a classic ComboBox like in other frameworks but we have instead a Spinner.
Actually it's exactly the same and only the name differs.
PySide2 is a Python API for the Qt framework.
This API is made with Shiboken2, the Python binding generator.
It means that you can write your code in Python and use the Qt framework as you’d do with C++.
You have a C++ std::vector and you want to convert it to a Boost.Python Numpy ndarray.
But, once the ndarray got, you want to get back to the C++ array.
How to do that?
Let's see that in this Boost.Python tutorial.
If you are using Python then NumPy is quite interesting for manipulating arrays.
But how do we do that with C++ and Boost.Python NumPy extension?
If you are a scientist and interested in Python, you certainly already know the NumPy package.
In this tutorial I'll propose to explain how to install it on Windows in order to be used with the Boost.Python library.
We'll also make an Hello world example.
Communication between 2 different language isn't so easy.
It's often possible to find libraries to help us achieve this behaviour.
That's what we are going to see in this Boost.Python tutorial for Windows.
Let's get started.