transparent
01-11-2011, 05:59 AM
Hi guys,
I'm playing with openGL for the first time on the Android platform.
I'm wanting to draw a polygon filled with a repeating texture. (It will represent 2d landscape i.e. http://www.blogcdn.com/www.joystiq.com/media/2009/08/gentlemenplatformer580.jpg)
The reason I'm using a polygon is I'm using the same shape to create a box2d physics object...
So my question is, how do I fill a polygon with a repeating texture?
Also can anybody recommend a good book on openGL?
Many thanks!
I'm playing with openGL for the first time on the Android platform.
I'm wanting to draw a polygon filled with a repeating texture. (It will represent 2d landscape i.e. http://www.blogcdn.com/www.joystiq.com/media/2009/08/gentlemenplatformer580.jpg)
The reason I'm using a polygon is I'm using the same shape to create a box2d physics object...
So my question is, how do I fill a polygon with a repeating texture?
Also can anybody recommend a good book on openGL?
Many thanks!