Created
January 19, 2012 10:30
-
-
Save oampo/1639302 to your computer and use it in GitHub Desktop.
XHR for WebGL file export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = this.canvas.toDataURL(); | |
var request = new Request({ | |
url: 'http://127.0.0.1:8080', | |
onFailure: function(xhr) { | |
console.error(xhr); | |
} | |
}); | |
url = request.send('data=' + data + '&frame=' + this.frameCount); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment