The full enum vocabulary the SDK uses across modules — texture
wrapping, mip filters, primitive types, encoding spaces, media
types, projection modes, navigation modes, key codes, and more.
Constants live in one place so loaders, exporters, the renderer,
and viewer wire-format all agree on the same integer codes. The
GL ↔ xeokit mapping is handled inside the WebGL renderer; the
external integer values exposed here are stable across SDK
versions and form part of the wire format for XGF / DataModel
payloads.
Single source of truth — every SDK module reads constants
from here; loaders / exporters / the renderer never disagree
on a numeric code.
Stable across versions — values are pinned and form part
of the wire format. Reordering or renumbering breaks
compatibility with persisted XGF / DataModel payloads.
GL-mapped at the boundary — host code never passes raw
GLenums; pass these constants and the renderer converts.
Layout-aware key codes — QWERTYLayout / AZERTYLayout
ship with the viewController
defaults, plus the underlying KEY_* codes for custom maps.
xeokit Constants
The full enum vocabulary the SDK uses across modules — texture wrapping, mip filters, primitive types, encoding spaces, media types, projection modes, navigation modes, key codes, and more.
Constants live in one place so loaders, exporters, the renderer, and viewer wire-format all agree on the same integer codes. The GL ↔ xeokit mapping is handled inside the WebGL renderer; the external integer values exposed here are stable across SDK versions and form part of the wire format for XGF / DataModel payloads.
Categories
RepeatWrapping,ClampToEdgeWrapping,MirroredRepeatWrapping.NearestFilter,LinearFilter, and the*MipMap*variants.RGBAFormat,RGBA_S3TC_DXT*_Format,sRGBEncoding,LinearEncoding.TrianglesPrimitive,LinesPrimitive,PointsPrimitive,SolidPrimitive,SurfacePrimitive.PNGMediaType,JPEGMediaType,KTX2MediaType, etc.PerspectiveProjectionType,OrthoProjectionType,OrbitNavigationMode, etc.KEY_A..KEY_Z,KEY_NUM_*,QWERTYLayout,AZERTYLayout.Features
QWERTYLayout/AZERTYLayoutship with the viewController defaults, plus the underlyingKEY_*codes for custom maps.Installation
Usage