Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/image view tex coords #107

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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