# defaultLightStyles
function defaultLightStyles()Return the default light styles value.
src/miniquake2/renderer/types.mlProvides miniquake2 renderer types facilities for this project.
miniquake2/qcommon/types.ml as qtypes → src/miniquake2/qcommon/types.mlminiquake2/renderer/constants.ml as rc → src/miniquake2/renderer/constants.mlminiquake2.renderer.types.CVar struct
function defaultLightStyles()Return the default light styles value.
function defaultRefDef(width, height)Return the default ref def value.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
function dLight(origin, color, intensity)Return the d light value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
color | dynamic | — | color value consumed by this operation. |
intensity | dynamic | — | intensity value consumed by this operation. |
miniquake2.renderer.types.DLight struct
function emptyEntity()Report whether empty entity.
function entity(model, angles, origin, frame, oldOrigin, oldFrame, backLerp, skinNum, lightStyle, alpha, skin, flags)Return the entity value.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
oldOrigin | dynamic | — | oldOrigin value consumed by this operation. |
oldFrame | dynamic | — | oldFrame value consumed by this operation. |
backLerp | dynamic | — | backLerp value consumed by this operation. |
skinNum | dynamic | — | skinNum value consumed by this operation. |
lightStyle | dynamic | — | lightStyle value consumed by this operation. |
alpha | dynamic | — | alpha value consumed by this operation. |
skin | dynamic | — | skin value consumed by this operation. |
flags | dynamic | — | Bit flags controlling the operation. |
miniquake2.renderer.types.Entity struct
function lightStyle(red, green, blue)Return the light style value.
| Parameter | Type | Default | Description |
|---|---|---|---|
red | dynamic | — | red value consumed by this operation. |
green | dynamic | — | green value consumed by this operation. |
blue | dynamic | — | blue value consumed by this operation. |
miniquake2.renderer.types.LightStyle struct
function particle(origin, color, alpha)Return the particle value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
color | dynamic | — | color value consumed by this operation. |
alpha | dynamic | — | alpha value consumed by this operation. |
miniquake2.renderer.types.Particle struct
miniquake2.renderer.types.PicSize struct
function refDef(x, y, width, height, fovX, fovY, viewOrigin, viewAngles, blend, time, rdFlags, areaBits, lightStyles, entities, dLights, particles)Return the ref def value.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
fovX | dynamic | — | fovX value consumed by this operation. |
fovY | dynamic | — | fovY value consumed by this operation. |
viewOrigin | dynamic | — | viewOrigin value consumed by this operation. |
viewAngles | dynamic | — | viewAngles value consumed by this operation. |
blend | dynamic | — | blend value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
rdFlags | dynamic | — | rdFlags value consumed by this operation. |
areaBits | dynamic | — | areaBits value consumed by this operation. |
lightStyles | dynamic | — | lightStyles value consumed by this operation. |
entities | dynamic | — | entities value consumed by this operation. |
dLights | dynamic | — | dLights value consumed by this operation. |
particles | dynamic | — | particles value consumed by this operation. |
miniquake2.renderer.types.RefDef struct
miniquake2.renderer.types.RefExport struct
miniquake2.renderer.types.RefImport struct
miniquake2.renderer.types.RendererBinding struct