Hello,
for a little project I must do some work with OpenGL that is executed in a custom QQuickItem.
This is my first contact with OpenGL. I had looked for the basic openGL examples like "cube OpenGL ES 2" or "Scene Graph - OpenGL under QML".
In my project, I want to create a different count of objects (balls) that are distributed in a 3D space.
OpenGL itself doesn't handle the object-oriented-paradigm, isn't it?
How can I create a class for a openGL object (for example ball), so I can draw multiple items of the same object to different places? So I only set up the position and the color
thank you for your help
Bookmarks