Advertisement

SDL2_gfx texturedPolygon function question

Started by March 12, 2015 04:06 PM
2 comments, last by Wooh 9 years, 9 months ago

Hi guys,

Does anybody know what the texture_dx and texture_dy mean in the texturedPolygon function in SDL2_gfx framework?

The description is really cryptic for me.

Thanks.

It's the position where the polygon will be drawn.
Advertisement

It's the position where the polygon will be drawn.

Wait, what?

So what does the vx and vy arrays represent? I thought that was the vertices in screen coordinates.

Ignore what I just said. I was wrong. The shape made up of vx and vy cuts out a piece of the texture but what part depends on texture_dx and texture_dy.

This topic is closed to new replies.

Advertisement