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

Error handling and Utilities added to Tw2TextureRes #236

Closed
wants to merge 2 commits into from
Closed

Error handling and Utilities added to Tw2TextureRes #236

wants to merge 2 commits into from

Conversation

cppctamber
Copy link
Contributor

@cppctamber cppctamber commented Apr 21, 2017

  • Added CreateImageFromTexture prototype and static methods which create HTML IMG elements from a textureRes's WebGLTexture
  • Added CreateBlobFromTexture prototype and static methods which create a png base 64 blob from the textureRes's WebGLTexture

- Added `CreateImageFromTexture` prototype and static method which create HTML IMG elements from a textureRes's WebGLTexture
- Added `CreateBlobFromTexture` prototype and static method which create a png base 64 blob from the textureRes's WebGLTexture
@cppctamber cppctamber changed the title Add utility prototypes to Tw2TextureRes Added utility prototypes to Tw2TextureRes Apr 21, 2017
- Errors now caught on `Tw2TextureRes`
- The resources `_isLoading` variable is correctly updated 
- The `onLoadFinished` callback is called if it exists 
- Error message emitted/ logged
@cppctamber cppctamber changed the title Added utility prototypes to Tw2TextureRes Error handling and Utilities added to Tw2TextureRes May 13, 2017
@filipppavlov
Copy link
Contributor

Export functions assume 2d texture. Can you handle other texture types (at least give an error)?

@cppctamber
Copy link
Contributor Author

Haven't figured out how to identify the texture type so will remove this until such time as I can! :)

@cppctamber cppctamber closed this Aug 21, 2017
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.

2 participants