MiniQuake2

src/miniquake2/renderer/classic/materials.ml

Provides miniquake2 renderer classic materials facilities for this project.

Package
miniquake2.renderer.classic.materials
Reachable
Yes

Imports

Declarations

alphaForFlags

function alphaForFlags(flags)

Return the alpha for flags.

ParameterTypeDefaultDescription
flagsdynamic—Bit flags controlling the operation.

View source

animatedImage

function animatedImage(frames, entityFrame)

Return the animated image value.

ParameterTypeDefaultDescription
framesdynamic—frames value consumed by this operation.
entityFramedynamic—entityFrame value consumed by this operation.

View source

animationImages

function animationImages(map, texInfoIndex, images)

Return the animation images value.

ParameterTypeDefaultDescription
mapdynamic—map value consumed by this operation.
texInfoIndexdynamic—Zero-based index of tex info.
imagesdynamic—images value consumed by this operation.

View source

classify

function classify(flags)

Return the classify value.

ParameterTypeDefaultDescription
flagsdynamic—Bit flags controlling the operation.

View source

findImage

function findImage(images, name)

Find image.

ParameterTypeDefaultDescription
imagesdynamic—images value consumed by this operation.
namedynamic—Name of the affected item.

View source

imageFromPcx

function imageFromPcx(name, pcx)

Return the image from pcx.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.
pcxdynamic—pcx value consumed by this operation.

View source

imageFromWal

function imageFromWal(wal, palette)

Return the image from wal.

ParameterTypeDefaultDescription
waldynamic—wal value consumed by this operation.
palettedynamic—palette value consumed by this operation.

View source

imageOrFallback

function imageOrFallback(images, name)

Return the image or fallback value.

ParameterTypeDefaultDescription
imagesdynamic—images value consumed by this operation.
namedynamic—Name of the affected item.

View source

rgbaFromIndexed

function rgbaFromIndexed(pixels, palette)

Return the rgba from indexed.

ParameterTypeDefaultDescription
pixelsdynamic—pixels value consumed by this operation.
palettedynamic—palette value consumed by this operation.

View source

rgbaFromIndexedIntensity

function rgbaFromIndexedIntensity(pixels, palette, intensity)

ref_gl uploads mipmapped world/model textures through its intensity table. The stock default is 2; sky and 2-D pictures deliberately stay unscaled.

ParameterTypeDefaultDescription
pixelsdynamic—pixels value consumed by this operation.
palettedynamic—palette value consumed by this operation.
intensitydynamic—intensity value consumed by this operation.

View source