On May 29, 4:11 pm, dasacc22 <dasac...@gmail.com> wrote: > Hey lynx, that subtexturing and stretching reminds me of png 9 patch. > http://developer.android.com/guide/topics/graphics/2d-graphics.html#n...
That's a nice way to do it, re: using lines along the side to define the stretchable areas. It's actually pretty close to what 9-patch is doing but instead of lines on the side, I pass in parameters to say how far the left, right, top and bottom margins of the stretchable region should be. These parameters are hardcoded right now but my intent is to have it read GUI skin information from an XML file. The actual panel class is just a vertex list of GL_QUADS, each of which corresponds to one of the 9 boxes. To resize it, all I have to do is change the vertices, the tex coords don't change. Let me know if you want sample code for some reason. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to pyglet-users@googlegroups.com To unsubscribe from this group, send email to pyglet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---