Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
bicameral::editor::anonymous_namespace{lab_panel.cpp} Namespace Reference

Functions

int32_t TemperatureOf (const sim::BakedReactionTable &table, const reaction::RxCell &cell)
ImVec4 TemperatureColor (int32_t milliKelvin)
sim::LabCellPosition PositionOf (const std::array< int, 3 > &cell)

Variables

constexpr int MAX_KELVIN = static_cast<int>(lab::LAB_MAX_TEMPERATURE_MILLIKELVIN / 1000)
constexpr float SLICE_CELL_PIXELS = 22.0f
constexpr float HOT_KELVIN = 2000.0f
constexpr uint32_t AUTO_IGNITE_TICK = 3
constexpr uint32_t AUTO_TICKS = 60
constexpr uint32_t AUTO_IGNITE_MILLIKELVIN = 1500000

Function Documentation

◆ PositionOf()

sim::LabCellPosition bicameral::editor::anonymous_namespace{lab_panel.cpp}::PositionOf ( const std::array< int, 3 > & cell)

Definition at line 38 of file lab_panel.cpp.

References PositionOf().

Referenced by PositionOf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TemperatureColor()

ImVec4 bicameral::editor::anonymous_namespace{lab_panel.cpp}::TemperatureColor ( int32_t milliKelvin)

Definition at line 32 of file lab_panel.cpp.

References HOT_KELVIN, and TemperatureColor().

Referenced by TemperatureColor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TemperatureOf()

int32_t bicameral::editor::anonymous_namespace{lab_panel.cpp}::TemperatureOf ( const sim::BakedReactionTable & table,
const reaction::RxCell & cell )

Definition at line 27 of file lab_panel.cpp.

References TemperatureOf(), and bicameral::sim::BakedReactionTable::View().

Referenced by TemperatureOf().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ AUTO_IGNITE_MILLIKELVIN

uint32_t bicameral::editor::anonymous_namespace{lab_panel.cpp}::AUTO_IGNITE_MILLIKELVIN = 1500000
constexpr

Definition at line 25 of file lab_panel.cpp.

◆ AUTO_IGNITE_TICK

uint32_t bicameral::editor::anonymous_namespace{lab_panel.cpp}::AUTO_IGNITE_TICK = 3
constexpr

Definition at line 23 of file lab_panel.cpp.

◆ AUTO_TICKS

uint32_t bicameral::editor::anonymous_namespace{lab_panel.cpp}::AUTO_TICKS = 60
constexpr

Definition at line 24 of file lab_panel.cpp.

◆ HOT_KELVIN

float bicameral::editor::anonymous_namespace{lab_panel.cpp}::HOT_KELVIN = 2000.0f
constexpr

Definition at line 20 of file lab_panel.cpp.

Referenced by TemperatureColor().

◆ MAX_KELVIN

int bicameral::editor::anonymous_namespace{lab_panel.cpp}::MAX_KELVIN = static_cast<int>(lab::LAB_MAX_TEMPERATURE_MILLIKELVIN / 1000)
constexpr

Definition at line 18 of file lab_panel.cpp.

◆ SLICE_CELL_PIXELS

float bicameral::editor::anonymous_namespace{lab_panel.cpp}::SLICE_CELL_PIXELS = 22.0f
constexpr

Definition at line 19 of file lab_panel.cpp.