DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::PlatformConfig Struct Reference

What the editor knows about a platform: its identity, the framework whose backend builds for it, that backend's settings (carried, not interpreted), its screen, compiler flags, what it offers packages and what it needs from them, and the scene it boots. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/build/PlatformConfig.h>

Public Member Functions

std::set< std::string > Capabilities () const
 provides, plus "framework:<framework>" and "family:<family>" derived from this config.
std::string Option (const std::string &key, const std::string &fallback="") const
 Reads one value out of frameworkOptions.
bool OptionBool (const std::string &key, bool fallback=false) const
std::vector< std::string > OptionList (const std::string &key) const
uint32_t OptionU32 (const std::string &key, uint32_t fallback=0) const
void SetOption (const std::string &key, const std::string &value)
 Sets one value, creating the object if needed.
void SetOptionBool (const std::string &key, bool value)
void SetOptionList (const std::string &key, const std::vector< std::string > &values)
void SetOptionU32 (const std::string &key, uint32_t value)

Public Attributes

std::string assetStorage = "internal"
std::string bootScene
std::vector< std::string > cFlags
std::string colorFormat
std::vector< std::string > cxxFlags
std::vector< std::string > defines
std::string displayName
uint32_t externalMemorySize = 0
std::string family
std::string framework
std::string frameworkOptions
std::string id
std::vector< std::string > linkFlags
std::vector< std::string > provides
std::vector< std::string > requiresPackages
float screenDiagonalInches = 0.0f
int screenHeight = 0
int screenWidth = 0

Detailed Description

What the editor knows about a platform: its identity, the framework whose backend builds for it, that backend's settings (carried, not interpreted), its screen, compiler flags, what it offers packages and what it needs from them, and the scene it boots.

Member Function Documentation

◆ Capabilities()

std::set< std::string > DekiEditor::PlatformConfig::Capabilities ( ) const

provides, plus "framework:<framework>" and "family:<family>" derived from this config.

A package truly tied to one toolchain can require those without anyone writing a new list.

◆ Option()

std::string DekiEditor::PlatformConfig::Option ( const std::string & key,
const std::string & fallback = "" ) const

Reads one value out of frameworkOptions.

A missing or wrong-typed key gives the fallback, so a builder need not guard every lookup.

◆ OptionBool()

bool DekiEditor::PlatformConfig::OptionBool ( const std::string & key,
bool fallback = false ) const

◆ OptionList()

std::vector< std::string > DekiEditor::PlatformConfig::OptionList ( const std::string & key) const

◆ OptionU32()

uint32_t DekiEditor::PlatformConfig::OptionU32 ( const std::string & key,
uint32_t fallback = 0 ) const

◆ SetOption()

void DekiEditor::PlatformConfig::SetOption ( const std::string & key,
const std::string & value )

Sets one value, creating the object if needed.

For the platform editor and the MCP tool, which do not know what the keys mean.

◆ SetOptionBool()

void DekiEditor::PlatformConfig::SetOptionBool ( const std::string & key,
bool value )

◆ SetOptionList()

void DekiEditor::PlatformConfig::SetOptionList ( const std::string & key,
const std::vector< std::string > & values )

◆ SetOptionU32()

void DekiEditor::PlatformConfig::SetOptionU32 ( const std::string & key,
uint32_t value )

Member Data Documentation

◆ assetStorage

std::string DekiEditor::PlatformConfig::assetStorage = "internal"

◆ bootScene

std::string DekiEditor::PlatformConfig::bootScene

◆ cFlags

std::vector<std::string> DekiEditor::PlatformConfig::cFlags

◆ colorFormat

std::string DekiEditor::PlatformConfig::colorFormat

◆ cxxFlags

std::vector<std::string> DekiEditor::PlatformConfig::cxxFlags

◆ defines

std::vector<std::string> DekiEditor::PlatformConfig::defines

◆ displayName

std::string DekiEditor::PlatformConfig::displayName

◆ externalMemorySize

uint32_t DekiEditor::PlatformConfig::externalMemorySize = 0

◆ family

std::string DekiEditor::PlatformConfig::family

◆ framework

std::string DekiEditor::PlatformConfig::framework

◆ frameworkOptions

std::string DekiEditor::PlatformConfig::frameworkOptions

◆ id

std::string DekiEditor::PlatformConfig::id

◆ linkFlags

std::vector<std::string> DekiEditor::PlatformConfig::linkFlags

◆ provides

std::vector<std::string> DekiEditor::PlatformConfig::provides

◆ requiresPackages

std::vector<std::string> DekiEditor::PlatformConfig::requiresPackages

◆ screenDiagonalInches

float DekiEditor::PlatformConfig::screenDiagonalInches = 0.0f

◆ screenHeight

int DekiEditor::PlatformConfig::screenHeight = 0

◆ screenWidth

int DekiEditor::PlatformConfig::screenWidth = 0

The documentation for this struct was generated from the following file: