WebGLTexture
L'interface WebGLTexture fait partie de l'API WebGL et représente un objet de texture opaque fournissant un stockage et un état pour les opérations de texturation.
Description
L'objet WebGLTexture ne définit aucune méthode ou propriété propre, et son contenu n'est pas directement accessible. Lors du travail avec des objets WebGLTexture, les méthodes suivantes du WebGLRenderingContext
sont utiles :
Exemples
>Création d'une texture
js
var canevas = document.getElementById("canvas");
var gl = canevas.getContext("webgl");
var texture = gl.createTexture();
Spécifications
Compatibilité des navigateurs
Voir aussi
WebGLRenderingContext.bindTexture()
WebGLRenderingContext.createTexture()
WebGLRenderingContext.deleteTexture()
WebGLRenderingContext.isTexture()
WebGLRenderingContext.compressedTexImage2D()
WebGLRenderingContext.compressedTexSubImage2D()
WebGLRenderingContext.copyTexImage2D()
WebGLRenderingContext.copyTexSubImage2D()
WebGLRenderingContext.generateMipmap()
WebGLRenderingContext.getTexParameter()
WebGLRenderingContext.texImage2D()
WebGLRenderingContext.texSubImage2D()
WebGLRenderingContext.texParameterf()
WebGLRenderingContext.texParameteri()