MiniQuake2

src/miniquake2/renderer/types.ml

Provides miniquake2 renderer types facilities for this project.

Package
miniquake2.renderer.types
Reachable
Yes

Imports

Declarations

miniquake2.renderer.types.CVar struct

defaultLightStyles

function defaultLightStyles()

Return the default light styles value.

View source

defaultRefDef

function defaultRefDef(width, height)

Return the default ref def value.

ParameterTypeDefaultDescription
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.

View source

dLight

function dLight(origin, color, intensity)

Return the d light value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
colordynamic—color value consumed by this operation.
intensitydynamic—intensity value consumed by this operation.

View source

miniquake2.renderer.types.DLight struct

emptyEntity

function emptyEntity()

Report whether empty entity.

View source

entity

function entity(model, angles, origin, frame, oldOrigin, oldFrame, backLerp, skinNum, lightStyle, alpha, skin, flags)

Return the entity value.

ParameterTypeDefaultDescription
modeldynamic—model value consumed by this operation.
anglesdynamic—angles value consumed by this operation.
origindynamic—origin value consumed by this operation.
framedynamic—frame value consumed by this operation.
oldOrigindynamic—oldOrigin value consumed by this operation.
oldFramedynamic—oldFrame value consumed by this operation.
backLerpdynamic—backLerp value consumed by this operation.
skinNumdynamic—skinNum value consumed by this operation.
lightStyledynamic—lightStyle value consumed by this operation.
alphadynamic—alpha value consumed by this operation.
skindynamic—skin value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.

View source

miniquake2.renderer.types.Entity struct

lightStyle

function lightStyle(red, green, blue)

Return the light style value.

ParameterTypeDefaultDescription
reddynamic—red value consumed by this operation.
greendynamic—green value consumed by this operation.
bluedynamic—blue value consumed by this operation.

View source

miniquake2.renderer.types.LightStyle struct

particle

function particle(origin, color, alpha)

Return the particle value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
colordynamic—color value consumed by this operation.
alphadynamic—alpha value consumed by this operation.

View source

miniquake2.renderer.types.Particle struct

miniquake2.renderer.types.PicSize struct

refDef

function refDef(x, y, width, height, fovX, fovY, viewOrigin, viewAngles, blend, time, rdFlags, areaBits, lightStyles, entities, dLights, particles)

Return the ref def value.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.
fovXdynamic—fovX value consumed by this operation.
fovYdynamic—fovY value consumed by this operation.
viewOrigindynamic—viewOrigin value consumed by this operation.
viewAnglesdynamic—viewAngles value consumed by this operation.
blenddynamic—blend value consumed by this operation.
timedynamic—time value consumed by this operation.
rdFlagsdynamic—rdFlags value consumed by this operation.
areaBitsdynamic—areaBits value consumed by this operation.
lightStylesdynamic—lightStyles value consumed by this operation.
entitiesdynamic—entities value consumed by this operation.
dLightsdynamic—dLights value consumed by this operation.
particlesdynamic—particles value consumed by this operation.

View source

miniquake2.renderer.types.RefDef struct

miniquake2.renderer.types.RefExport struct

miniquake2.renderer.types.RefImport struct

miniquake2.renderer.types.RendererBinding struct

miniquake2.renderer.types.ResourceHandle struct

miniquake2.renderer.types.VideoModeInfo struct