MeshSubmesh

Per-glTF-primitive draw descriptor. Holds a single RR-cache key for the combined vertices+indices+batchIds buffer plus a separate texture key. Draw metadata only.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

RGBA, premultiplied. Multiplied with the sampled texel when a texture is bound.

Link copied to clipboard
Link copied to clipboard

Null when the material has no texture or the decoder failed.

Link copied to clipboard

Byte offset of the batchId section, or -1 when the primitive has no _BATCHID.

Link copied to clipboard

RR-cache refs resolved once by uploadMeshContent; per-frame drawable enqueue reads them direct — no HashMap.getNode. Cache still owns lifetime; post-eviction the GL handles invalidate and bindBuffer/bindTexture returns false.

Link copied to clipboard

Combined buffer: vertices | indices | batchIds. Bound to GL_ARRAY_BUFFER for the vertex attribs and (where elementBufferKey is null) to GL_ELEMENT_ARRAY_BUFFER for drawElements via BufferObject.bindBufferAs. Single mmap per primitive instead of three.

Link copied to clipboard

3 (RGB) or 4 (RGBA); 0 when absent.

Link copied to clipboard

Byte offset of per-vertex COLOR_0 in the interleaved buffer; -1 when absent.

Link copied to clipboard
Link copied to clipboard

Resolved dedicated index buffer (split path); null on the shared path, where the combined buffer doubles as the element buffer.

Link copied to clipboard

Separate index buffer key, non-null only on backends that forbid binding one buffer to two targets (WebGL — see earth.worldwind.util.kgl.Kgl.supportsSharedElementArrayBuffer). When null, indices live inside bufferKey's combined buffer at elementOffset.

Link copied to clipboard
Link copied to clipboard

Byte offset of the index section. Passed to glDrawElements as the indices argument. Into the combined buffer (shared path) or 0 into the dedicated elementBuffer (split).

Link copied to clipboard
Link copied to clipboard
val mode: Int

glTF primitive mode (4=TRIANGLES, 1=LINES, 0=POINTS).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

True iff every mandatory buffer (combined VBO + any split EBO) is still RR-cache- resident. Texture is optional — untextured photogrammetry tilesets use per-vertex COLOR_0 instead.

Link copied to clipboard