viridis
27th February 2008, 17:36
Hi,
For my first post, I just want to ask a question which I have in mind for weeks and which is related to QGraphicsPath rendering.
Imagine you want to use QGP to render..huh..a road for example, in a 2D car video game. Is think QGP is a good start point because it allows easy map editor writing and any types of curve for tracks.
It sounds good but I was wondering how QGP can render itself to represents a road (with red and white lines at each sides, with a patterned ground...). In fact, I want to use a patterns which "follows the curves" (= not just repeat itself horizontally and vertically).
Any idea ?
Thanks in advance and, of course, excuse my so poor english !
For my first post, I just want to ask a question which I have in mind for weeks and which is related to QGraphicsPath rendering.
Imagine you want to use QGP to render..huh..a road for example, in a 2D car video game. Is think QGP is a good start point because it allows easy map editor writing and any types of curve for tracks.
It sounds good but I was wondering how QGP can render itself to represents a road (with red and white lines at each sides, with a patterned ground...). In fact, I want to use a patterns which "follows the curves" (= not just repeat itself horizontally and vertically).
Any idea ?
Thanks in advance and, of course, excuse my so poor english !