Private constructorPrivate _filterPrivate _mipPrivate _textureProtected ecPrivate seamlessPrivate sourcetrue => pixel data is pre-modulated
Static fromCreate texture from a canvas (or similar image data)
The source object will be retained to have support for context loss.
Static fromCreates a managed texture around the given Image.
NOTE: It's important that the image is loaded. Unloaded images will throw an exception.
The image will remain in RAM to allow it to recover from context loss.
Static fromSimple creation method to easily generate checker textures etc.
const tex = ManagedTexture.fromRawPixels(ec, [ 255, 255, 255, 255, // << 1. pixel 192, 192, 192, 255, // << 2. pixel 192, 192, 192, 255, // << 3. pixel 255, 255, 255, 255, // << 4. pixel ], 2, 2);
Static fromA manager around a render-to-texture texture. Cannot be the main render Target
Generated using TypeDoc
Copyright (c) 2013-2023 Christoph Schnackenberg mail@xtoff.games
MIT license: https://github.com/typespritejs/typesprite-engine/blob/develop/LICENSE.MD