How do I create an instance of QPaintedTextureImage
Unsolved
Game Development
-
I understand that I have to make a class that inherits from QPaintedTextureImage. What I don't understand is to put a painter into the paint method where does the painter come from is it automatically created? and the actual texture itself how is it included.
-
Hi,
As the class documentation states, the QPaintedTextureImage must be attached to a texture.
The paint method provides you the QPainter instance you have to use.