MiniQuake2

src/miniquake2/client/screenshot.ml

Provides miniquake2 client screenshot facilities for this project.

Package
miniquake2.client.screenshot
Reachable
Yes

Imports

Declarations

capture

function capture(state, width, height)

Call after RenderFrame/UI and before EndFrame swaps the back buffer.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated 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.

View source

create

function create(directory)

Creates create for the miniquake2 client screenshot module.

ParameterTypeDefaultDescription
directorydynamic—directory value consumed by this operation.

View source

CreateDirectoryW

extern function CreateDirectoryW(path as wstr, security as ptr) from "kernel32.dll" returns bool

Invokes the native CreateDirectoryW entry point used by the miniquake2 client screenshot module.

ParameterTypeDefaultDescription
pathwstr—Path of the file or directory used by the operation.
securityptr—security value consumed by this operation.

Returns: Native bool result produced by the call.

View source

ensureDirectory

function ensureDirectory(path)

Ensure directory.

ParameterTypeDefaultDescription
pathdynamic—Path of the file or directory used by the operation.

View source

fileName

function fileName(index)

Return the file name.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

paddedIndex

function paddedIndex(index)

Return the padded index.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

reservePath

function reservePath(state)

Reserve path.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

miniquake2.client.screenshot.ScreenshotState struct

writeImage

function writeImage(state, image)

Write image.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
imagedynamic—image value consumed by this operation.

View source