Skip to content

Commit

Permalink
SceneryBase: Open up renderer, scene, etc for reading from the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
skalarproduktraum committed Feb 19, 2024
1 parent 9515e5d commit 25f9743
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/main/kotlin/graphics/scenery/SceneryBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,27 @@ open class SceneryBase @JvmOverloads constructor(var applicationName: String,
val scijavaContext: Context? = null) {

/** The scene used by the renderer in the application */
protected var scene: Scene = Scene()
var scene: Scene = Scene()
protected set
/** REPL for the application, can be initialised in the [init] function */
protected var repl: REPL? = null
var repl: REPL? = null
protected set
/** Frame number for counting FPS */
protected var ticks = 0L
/** The default renderer for this application, see [Renderer] */
protected var renderer: Renderer? = null
var renderer: Renderer? = null
protected set
/** The Hub used by the application, see [Hub] */
var hub: Hub = Hub()
/** Global settings storage */
protected var settings: Settings = Settings()
var settings: Settings = Settings()
protected set
/** ui-behaviour input handler */
protected var inputHandler: InputHandler? = null
var inputHandler: InputHandler? = null
protected set
/** [Statistics] object to collect runtime stats on various routines. */
protected var stats: Statistics = Statistics(hub)
var stats: Statistics = Statistics(hub)
protected set

/** State variable for registering a new renderer */
data class NewRendererParameters(val rendererType: String, val hub: Hub,
Expand Down

0 comments on commit 25f9743

Please sign in to comment.