Add texture sources for WebGL

This commit is contained in:
Christoph Diehl 2018-02-20 02:45:45 +01:00
parent 29fd8b2d53
commit 3ddc37a7e9
No known key found for this signature in database
GPG Key ID: 799CE5B68FEF404A
1 changed files with 11 additions and 0 deletions

View File

@ -53,5 +53,16 @@
},
renderbufferTarget: () => {
return 'RENDERBUFFER'
},
textureSources: () => {
sources = [
'HTMLCanvasElement',
'HTMLImageElement',
'HTMLVideoElement',
'ImageBitmap',
'ImageData',
'ArrayBufferView'
]
return random.item(sources)
}
}