application
Runs program as a synchronous application with the given configuration.
See also
Constructs and configures an application using the provided builder block.
This function serves as an entry point for defining the application's setup, including its program behavior, configuration, and other components, using the DSL provided by the ApplicationBuilder.
Usage example:
fun main() = application {
configure {
width = 720
height = 720
title = "My OPENRNDR Application"
}
program {
extend {
drawer.clear(ColorRGBa.PINK)
drawer.circle(width / 2.0, height / 2.0, 100.0)
}
}
}Configures and initializes an application using the specified program and optional configuration settings.
Parameters
the program instance that defines the application's core behavior, lifecycle, and rendering logic.
an optional configuration object that defines customization options for the application, such as preferred window dimensions, debug settings, and display properties. Defaults to a basic configuration.
Constructs and configures an application using the provided builder block.
This function serves as an entry point for defining the application's setup, including its program behavior, configuration, and other components, using the DSL provided by the ApplicationBuilder.
Usage example:
fun main() = application {
configure {
width = 720
height = 720
title = "My OPENRNDR Application"
}
program {
extend {
drawer.clear(ColorRGBa.PINK)
drawer.circle(width / 2.0, height / 2.0, 100.0)
}
}
}Runs program as a synchronous application with the given configuration.
See also
Constructs and configures an application using the provided builder block.
This function serves as an entry point for defining the application's setup, including its program behavior, configuration, and other components, using the DSL provided by the ApplicationBuilder.
Usage example:
fun main() = application {
configure {
width = 720
height = 720
title = "My OPENRNDR Application"
}
program {
extend {
drawer.clear(ColorRGBa.PINK)
drawer.circle(width / 2.0, height / 2.0, 100.0)
}
}
}