MCPcopy Create free account
hub / github.com/WarFrontIO/client / createTexture

Method createTexture

src/renderer/GameGLContext.ts:100–111  ·  view source on GitHub ↗

* Creates a texture with the given options. * @param width The width of the texture * @param height The height of the texture * @param arr Initial texture data, make sure this fits the type and format passed to options * @param options Various settings for texture setup {@link TextureOptions

(width: number, height: number, arr: ArrayBufferView | TexImageSource | null = null, options: TextureOptions = {})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

constructorMethod · 0.80
resizeCanvasFunction · 0.80
updatePaletteMethod · 0.80
forceRepaintMethod · 0.80
createPaletteMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80

Calls 1

bindTextureMethod · 0.80

Tested by

no test coverage detected