API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classRenderTexture
An off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (scale mode, wrap mode, mip generation). A `textureVersion` counter is incremented on every mutation so backends can detect when to re-create the underlying GPU texture object. Mipmap generation is disabled by default because render targets are typically updated every frame and mip generation is expensive.
import { RenderTexture } from '@codexo/exojs' An off-screen render target that can also be sampled as a texture.
Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (scale mode, wrap mode, mip generation). A `textureVersion` counter is incremented on every mutation so backends can detect when to re-create the underlying GPU texture object.
Mipmap generation is disabled by default because render targets are typically updated every frame and mip generation is expensive.
new(width: number, height: number, options?: Partial<SamplerOptions>): RenderTexture _touch(): void addDestroyListener(listener: object): this destroy(): void getViewport(view: View): Rectangle mapCoordsToPixel(point: Vector, view: View): Vector mapPixelToCoords(point: Vector, view: View): Vector removeDestroyListener(listener: object): this resize(width: number, height: number): this setPremultiplyAlpha(premultiplyAlpha: boolean): this setScaleMode(scaleMode: ScaleModes): this setSize(width: number, height: number): this setSource(source: DataView<ArrayBufferLike> | null): this setView(view: View | null): this setWrapMode(wrapMode: WrapModes): this updateSource(): this updateViewport(): this needsStencil: boolean defaultSamplerOptions: SamplerOptions flipY: boolean generateMipMap: boolean height: number powerOfTwo: boolean premultiplyAlpha: boolean root: boolean scaleMode: ScaleModes size: Size source: DataView<ArrayBufferLike> | null textureVersion: number version: number view: View width: number wrapMode: WrapModes