•      Sign In
• Create Account

### #Actualhockeyman

Posted 19 July 2012 - 01:58 AM

I can, but I don't know how to do it in this situation. Because my vertex array object depends on user actions. I mean, points are being added wherever user drags pressed mouse. So I don't know how to tell my program where to draw these additional quads if distance is bigger than something.

If last two quads vertexes in my vertex array is
(x1,y1)[top left]
(x2,y2)[top right]
(x3,y3)[bottom right]
(x4,y4)[bottom left]


and
(x5,y5)[top left]
(x6,y6)[top right]
(x7,y7)[bottom right]
(x8,y8)[bottom left]


and distance between them is bigger than my allowed size (lets say I'm counting distance between [bottom right] points to know the distance between quads), then how to add for example 3 quads (12 vertexes) to my vertex array where they are needed (between these two quads)? I cant't know where user will be drawing, so I don't know exactly where additional quads will be needed.

### #1hockeyman

Posted 19 July 2012 - 01:57 AM

I can, but I don't know how to do it in this situation. Because my vertex array object depends on user actions. I mean, points are being added wherever user drags pressed mouse. So I don't know how to tell my program where to draw these additional quads if distance is bigger than something.

If last two quads vertexes in my vertex array is
(x1,y1)[top left]
(x2,y2)[top right]
(x3,y3)[bottom right]
(x4,y4)[bottom left]


and
(x5, y5)[top left]
(x6,y6)[top right]
(x7,y7)[bottom right]
(x8,y8)[bottom left]


and distance between them is bigger than my allowed size (lets say I'm counting distance between [bottom right] points to know the distance between quads), then how to add for example 3 quads (12 vertexes) to my vertex array where they are needed? I cant't know where user will be drawing, so I don't know exactly where additional quads will be needed.

PARTNERS