API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classGeometry
@codexo/exojs / rendering / stable
Non-renderable geometry data object used by advanced rendering paths. Geometry owns only vertex/index data and its layout metadata; it is not a scene node, has no transform state, and cannot render itself.
10
props
4
methods
0
events
Import
import { Geometry } from '@codexo/exojs'Non-renderable geometry data object used by advanced rendering paths.
Geometry owns only vertex/index data and its layout metadata; it is not a scene node, has no transform state, and cannot render itself.
Constructors1
new(options: GeometryOptionsConstruction options for Geometry.): GeometryMethods4
destroy(): voidRelease backend-owned resources associated with this geometry instance.
getLocalBounds(out: RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…): RectangleMutable axis-aligned rectangle defined by a top-left origin `(x, y)` and dimensions `(width, height)`. Implements Collidable with full SAT collision response f…Return local-space bounds; when out is provided it is populated and returned.
invalidate(): thisMark vertex data as mutated in place so backends can re-upload GPU buffers.
recomputeLocalBounds(): thisForce local-space AABB recomputation from the current position attribute data.
Properties10
indices: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike> | nullstride: numbervertexData: ArrayBuffer | Float32Array<ArrayBufferLike>id: numberindexCount: numberversion: numbervertexCount: numberSource