Files
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.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated 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. |
View source
# create
function create(directory)
Creates create for the miniquake2 client screenshot module.
| Parameter | Type | Default | Description |
|---|
directory | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
path | wstr | — | Path of the file or directory used by the operation. |
security | ptr | — | security value consumed by this operation. |
Returns: Native bool result produced by the call.
View source
# ensureDirectory
function ensureDirectory(path)
Ensure directory.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# fileName
function fileName(index)
Return the file name.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
View source
# paddedIndex
function paddedIndex(index)
Return the padded index.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
View source
# reservePath
function reservePath(state)
Reserve path.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
View source
miniquake2.client.screenshot.ScreenshotState struct
# writeImage
function writeImage(state, image)
Write image.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
image | dynamic | — | image value consumed by this operation. |
View source