Creates a texture from an image pixel region, using the whole image when area is omitted; throws SFMLError on failure.
imagesRgbOptionalareaOptionalSynchronously deep-copies source into this texture, preserving wrapper identity and returning this.
sourceGenerates mipmap levels for minification and returns whether it succeeded; regenerate after updating pixels.
Returns the OpenGL texture identifier, or 0 for an empty texture; retain the texture object while using it.
Returns whether repeating is enabled.
Returns whether smooth filtering is enabled.
Returns whether the texture uses the sRGB format.
Decodes a file asynchronously, then uploads pixels and returns success; area uses pixel coordinates and defaults to the whole image.
filenamesRgbareaOptionalSynchronously uploads the specified pixel region of an Image, defaulting to the whole image; returns whether it succeeded.
imagesRgbareaOptionalDecodes encoded image bytes asynchronously, then uploads pixels and returns success; sRgb defaults to false.
datasRgbareaOptionalDecodes and uploads an image asynchronously from a seekable stream, returning success; stream errors reject the Promise.
streamsRgbareaOptionalSuccessful resize leaves pixel contents undefined, as in SFML.
sizesRgbSets whether coordinates outside the texture repeat it; false uses edge pixels.
repeatedEnables or disables smooth texture filtering.
smoothSynchronously swaps pixels and settings after submitting recorded draws; cannot be used on borrowed texture views.
otherSynchronously updates the entire texture; pixels must contain exactly width
pixelsCopies image, texture or window contents to dest (default origin); the destination region must fit the entire source.
sourcedestOptionalStaticbindBind in the current GL context; retain the texture while using its ID.
texturecoordinateTypeStaticgetReturns the maximum texture side length supported by the current graphics card, in pixels.
GPU texture with background image decoding and ordered pixel uploads.