Files
src/miniquake2/runtime/product_host.ml
Provides miniquake2 runtime product host facilities for this project.
- Package
miniquake2.runtime.product_host- Reachable
- Yes
Imports
Declarations
# applyProductGamma
function applyProductGamma(host, gamma, active)
Apply product gamma.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
gamma | dynamic | — | gamma value consumed by this operation. |
active | dynamic | — | active value consumed by this operation. |
View source
# closeProductHost
function closeProductHost(host)
Close product host.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
View source
# openProductHost
function openProductHost(title, videoMode, fullScreen, rendererImports)
Open product host.
| Parameter | Type | Default | Description |
|---|
title | dynamic | — | Human-readable title presented to the user. |
videoMode | dynamic | — | videoMode value consumed by this operation. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
View source
# openProductHostWith
function openProductHostWith(callbacks, title, videoMode, fullScreen, rendererImports)
Open product host with.
| Parameter | Type | Default | Description |
|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
title | dynamic | — | Human-readable title presented to the user. |
videoMode | dynamic | — | videoMode value consumed by this operation. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
View source
miniquake2.runtime.product_host.ProductHost struct
miniquake2.runtime.product_host.ProductHostCallbacks struct
# productHostCreateRenderer
function productHostCreateRenderer(imports, contextActive)
Create product host renderer.
| Parameter | Type | Default | Description |
|---|
imports | dynamic | — | imports value consumed by this operation. |
contextActive | dynamic | — | contextActive value consumed by this operation. |
View source
# productHostCreateWindow
function productHostCreateWindow(title, width, height, fullScreen)
Create product host window.
| Parameter | Type | Default | Description |
|---|
title | dynamic | — | Human-readable title presented to the user. |
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. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
View source
# productHostDefaultCallbacks
function productHostDefaultCallbacks()
Return the product host default callbacks value.
View source
# productHostDestroyWindow
function productHostDestroyWindow(window)
Return the product host destroy window value.
| Parameter | Type | Default | Description |
|---|
window | dynamic | — | window value consumed by this operation. |
View source
# productHostDimensions
function productHostDimensions(videoMode)
Return the product host dimensions.
| Parameter | Type | Default | Description |
|---|
videoMode | dynamic | — | videoMode value consumed by this operation. |
View source
# productHostDrawText
function productHostDrawText(exports, x, y, text)
Draw product host text.
| Parameter | Type | Default | Description |
|---|
exports | dynamic | — | exports value consumed by this operation. |
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
text | dynamic | — | Text consumed by the operation. |
View source
# productHostInitRenderer
function productHostInitRenderer(renderer)
Initialize product host renderer.
| Parameter | Type | Default | Description |
|---|
renderer | dynamic | — | renderer value consumed by this operation. |
View source
# productHostReconfigureWindow
function productHostReconfigureWindow(window, width, height, fullScreen)
Reconfigure product host window.
| Parameter | Type | Default | Description |
|---|
window | dynamic | — | window value consumed by this 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. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
View source
# productHostRequireCallbacks
function productHostRequireCallbacks(callbacks)
Require product host callbacks.
| Parameter | Type | Default | Description |
|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
View source
# productHostRestartError
function productHostRestartError(host, title, rendererImports, oldVideoMode, oldFullScreen, gamma, restartFailure)
Restart product host error.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
title | dynamic | — | Human-readable title presented to the user. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
oldVideoMode | dynamic | — | oldVideoMode value consumed by this operation. |
oldFullScreen | dynamic | — | oldFullScreen value consumed by this operation. |
gamma | dynamic | — | gamma value consumed by this operation. |
restartFailure | dynamic | — | restartFailure value consumed by this operation. |
View source
# productHostShutdownRenderer
function productHostShutdownRenderer(renderer)
Shut down product host renderer.
| Parameter | Type | Default | Description |
|---|
renderer | dynamic | — | renderer value consumed by this operation. |
View source
# resetProductRenderer
function resetProductRenderer(host, rendererImports)
Rebuild renderer-owned managed state while preserving the native window and its OpenGL context. Media chains use this between heavyweight 3D steps.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
View source
# restartProductHost
function restartProductHost(host, title, videoMode, fullScreen, rendererImports)
Restart product host.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
title | dynamic | — | Human-readable title presented to the user. |
videoMode | dynamic | — | videoMode value consumed by this operation. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
View source
# restoreProductHost
function restoreProductHost(host, title, videoMode, fullScreen, rendererImports, gamma)
Recreate the last known-good video host after a target mode, context or renderer initialization failure. The native backend owns one window at a time, so this rollback is necessarily performed after the old host closes.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
title | dynamic | — | Human-readable title presented to the user. |
videoMode | dynamic | — | videoMode value consumed by this operation. |
fullScreen | dynamic | — | fullScreen value consumed by this operation. |
rendererImports | dynamic | — | rendererImports value consumed by this operation. |
gamma | dynamic | — | gamma value consumed by this operation. |
View source
# showProductLoading
function showProductLoading(host, label)
Return the show product loading value.
| Parameter | Type | Default | Description |
|---|
host | dynamic | — | host value consumed by this operation. |
label | dynamic | — | label value consumed by this operation. |
View source