# alphaForFlags
function alphaForFlags(flags)Return the alpha for flags.
| Parameter | Type | Default | Description |
|---|---|---|---|
flags | dynamic | — | Bit flags controlling the operation. |
src/miniquake2/renderer/classic/materials.mlProvides miniquake2 renderer classic materials facilities for this project.
miniquake2/format/constants.ml as fc → src/miniquake2/format/constants.mlminiquake2/qcommon/text.ml as qtext → src/miniquake2/qcommon/text.mlminiquake2/renderer/classic/constants.ml as rclassicconstants → src/miniquake2/renderer/classic/constants.mlminiquake2/renderer/classic/types.ml as rclassictypes → src/miniquake2/renderer/classic/types.mlstd/array.ml as rclassicarray → ../MiniLangCompilerML/std/array.ml external dependencyfunction alphaForFlags(flags)Return the alpha for flags.
| Parameter | Type | Default | Description |
|---|---|---|---|
flags | dynamic | — | Bit flags controlling the operation. |
function animatedImage(frames, entityFrame)Return the animated image value.
| Parameter | Type | Default | Description |
|---|---|---|---|
frames | dynamic | — | frames value consumed by this operation. |
entityFrame | dynamic | — | entityFrame value consumed by this operation. |
function animationImages(map, texInfoIndex, images)Return the animation images value.
| Parameter | Type | Default | Description |
|---|---|---|---|
map | dynamic | — | map value consumed by this operation. |
texInfoIndex | dynamic | — | Zero-based index of tex info. |
images | dynamic | — | images value consumed by this operation. |
function classify(flags)Return the classify value.
| Parameter | Type | Default | Description |
|---|---|---|---|
flags | dynamic | — | Bit flags controlling the operation. |
function findImage(images, name)Find image.
| Parameter | Type | Default | Description |
|---|---|---|---|
images | dynamic | — | images value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
function imageFromPcx(name, pcx)Return the image from pcx.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
pcx | dynamic | — | pcx value consumed by this operation. |
function imageFromWal(wal, palette)Return the image from wal.
| Parameter | Type | Default | Description |
|---|---|---|---|
wal | dynamic | — | wal value consumed by this operation. |
palette | dynamic | — | palette value consumed by this operation. |
function imageOrFallback(images, name)Return the image or fallback value.
| Parameter | Type | Default | Description |
|---|---|---|---|
images | dynamic | — | images value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
function rgbaFromIndexed(pixels, palette)Return the rgba from indexed.
| Parameter | Type | Default | Description |
|---|---|---|---|
pixels | dynamic | — | pixels value consumed by this operation. |
palette | dynamic | — | palette value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
pixels | dynamic | — | pixels value consumed by this operation. |
palette | dynamic | — | palette value consumed by this operation. |
intensity | dynamic | — | intensity value consumed by this operation. |