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?: RenderTextureOptionsConstruction options for RenderTexture.): RenderTexture_enableDepthTexture(): void_syncDepthSize(): void_touch(): voidaddDestroyListener(listener: () => void): thisdestroy(): voidgetViewport(view: View2D camera that defines what region of the world is visible on screen. Maintains a center position, a visible area size, a rotation, and an optional zoom level.…): RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…mapCoordsToPixel(point: VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…, view: View2D camera that defines what region of the world is visible on screen. Maintains a center position, a visible area size, a rotation, and an optional zoom level.…): VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…mapPixelToCoords(point: VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…, view: View2D camera that defines what region of the world is visible on screen. Maintains a center position, a visible area size, a rotation, and an optional zoom level.…): VectorConcrete mutable 2D vector with full AbstractVector arithmetic and Collidable collision support (treated as a point collider). `Vector.temp` provides a shared…removeDestroyListener(listener: () => void): thisresize(width: number, height: number): thissetGenerateMipMap(generateMipMap: boolean): thissetPremultiplyAlpha(premultiplyAlpha: boolean): thissetSize(width: number, height: number): thissetSource(source: DataView<ArrayBufferLike> | null): thisupdateSource(): thisupdateViewport(): thisneedsStencil: booleandestroyed: booleanflipY: booleangenerateMipMap: booleanheight: numberpowerOfTwo: booleanpremultiplyAlpha: booleanroot: booleansource: DataView<ArrayBufferLike> | nulltextureVersion: numberversion: numberwidth: number