Skip to main content

Types


art

art: basicsource
Fields
type: type
name: string
length: int32
extra: res-lump
Methods
login(obj: art) => _type_source
lookup-art(obj: art, arg0: string, arg1: type) => jointsource

Look-up an art with the given name and type.

lookup-idx-of-art(obj: art, arg0: string, arg1: type) => intsource

Look up the index of an art with the given name and type.

needs-link?(obj: art) => symbolsource

art-element

art-element: artsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8

art-group

art-group: artsource
Fields
type: type
name: string
length: int32
extra: res-lump
info: file-info
data: art-element
Methods
relocate(obj: art-group, arg0: kheap, arg1: pointer) => nonesource

Handle a loaded art-group.

link-art!(obj: art-group) => art-groupsource

Links the elements of this art-group.
This will put a reference to this joint animation in the level art group.
Level art groups have slots for temporarily loaded joint animations.

unlink-art!(obj: art-group) => intsource

Unlinks the elements of this art-group. This will undo the link-art! function.

art-joint-anim

art-joint-anim: art-elementsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8
eye-anim-data: merc-eye-anim-block
speed: float
artist-base: float
artist-step: float
master-art-group-name: string
master-art-group-index: int32
blerc-data: pointer
frames: joint-anim-compressed-control
data: joint-anim-compressed

art-joint-geo

art-joint-geo: art-elementsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8
data: joint

art-mesh-anim

art-mesh-anim: art-elementsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8
data: basic

art-mesh-geo

art-mesh-geo: art-elementsource
Fields
type: type
name: string
length: int32
extra: res-lump
pad: uint8
data: basic

draw-control

draw-control: basicsource
Fields
type: type
status: draw-status
matrix-type: uint8
data-format: uint8
global-effect: draw-effect
art-group: art-group
jgeo: art-joint-geo
mgeo: merc-ctrl
dma-add-func: function
skeleton: skeleton
lod-set: lod-set
lod: lod-group
max-lod: int8
force-lod: int8
cur-lod: int8
desired-lod: int8
ripple: ripple-control
longest-edge: meters
longest-edge?: uint32
light-index: uint8
dummy: uint8
death-draw-overlap: uint8
death-timer: uint8
death-timer-org: uint8
death-vertex-skip: uint16
death-effect: uint32
sink-group: dma-foreground-sink-group
process: process
shadow: shadow-geo
shadow-ctrl: shadow-control
origin: vector
bounds: vector
radius: meters
color-mult: rgbaf
color-emissive: rgbaf
secondary-interp: float
current-secondary-interp: float
shadow-mask: uint8
level-index: uint8
origin-joint-index: uint8
shadow-joint-index: uint8
Methods
get-skeleton-origin(obj: draw-control) => vectorsource

Get the origin of the skeleton. Must have up-to-date bones.

lod-set!(obj: draw-control, arg0: int) => nonesource
lods-assign!(obj: draw-control, arg0: lod-set) => nonesource

joint-anim

joint-anim: basicsource
Fields
type: type
name: string
number: int16
length: int16

joint-anim-compressed

joint-anim-compressed: joint-animsource
Fields
type: type
name: string
number: int16
length: int16
data: uint32

joint-anim-compressed-control

joint-anim-compressed-control: structuresource
Fields
num-frames: uint32
fixed-qwc: uint32
frame-qwc: uint32
fixed: joint-anim-compressed-fixed
data: joint-anim-compressed-frame

joint-anim-compressed-fixed

joint-anim-compressed-fixed: structuresource
Fields
hdr: joint-anim-compressed-hdr
offset-64: uint32
offset-32: uint32
offset-16: uint32
reserved: uint32
data: vector

joint-anim-compressed-frame

joint-anim-compressed-frame: structuresource
Fields
offset-64: uint32
offset-32: uint32
offset-16: uint32
reserved: uint32
data: vector

joint-anim-compressed-hdr

joint-anim-compressed-hdr: structuresource
Fields
control-bits: uint32
num-joints: uint32
matrix-bits: uint32

joint-anim-drawable

joint-anim-drawable: joint-animsource
Fields
type: type
name: string
number: int16
length: int16
data: drawable

joint-anim-frame

joint-anim-frame: structuresource
Fields
matrices: matrix
data: matrix

joint-anim-matrix

joint-anim-matrix: joint-animsource
Fields
type: type
name: string
number: int16
length: int16
data: matrix

joint-anim-transformq

joint-anim-transformq: joint-animsource
Fields
type: type
name: string
number: int16
length: int16
data: transformq

lod-group

lod-group: structuresource
Fields
geo: merc-ctrl
dist: meters

lod-set

lod-set: structuresource
Fields
lod: lod-group
max-lod: int8
Methods
setup-lods!(obj: lod-set, arg0: skeleton-group, arg1: art-group, arg2: entity) => _type_source

skeleton-group

skeleton-group: basicsource
Fields
type: type
art-group-name: string
jgeo: int32
janim: int32
bounds: vector
radius: meters
mgeo: int16
max-lod: int32
lod-dist: float
longest-edge: meters
texture-level: int8
version: int8
shadow: int8
sort: int8
_pad: uint8