js
createTexture()
Parameters
None.
Return valueA WebGLTexture
object to which images can be bound to.
See also the WebGL tutorial on Using textures in WebGL.
Creating a texturejs
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
const texture = gl.createTexture();
Specifications Specification WebGL SpecificationLoadingâ¦
See alsoWebGLRenderingContext.bindTexture()
WebGLRenderingContext.deleteTexture()
WebGLRenderingContext.isTexture()
WebGLRenderingContext.texImage2D()
Yes No
Learn how to contributeThis page was last modified on â¨Sep 28, 2024â© by MDN contributors.
View this page on GitHubâ¢
Report a problem with this contentRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5