Skip to content

Conversation

adielfernandez
Copy link
Contributor

Add in overloaded setTexture() method for specifying the texture coordinates of the texture subsection ImageView should draw.

Also includes getters and setters for accessing the current tex coords and the default (non-static) tex coords.

NOTES:

  • Calling setTexCoords() causes re-allocation of the batch so it's too slow to continuously update texcoords in realtime.
  • Shader used to draw Image is static, batch is now non-static. Performance seems to be same as previous implementation, but more testing is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant