Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxYAML Namespace Reference

YAML parsing and scene-builder functions. More...

Functions

std::string deIndent (const std::string &raw)
template<int N>
FxArray< float > parseArray (const YAML::Node &node)
YAML::Node LoadSmart (const std::string &textOrPath)
FxScene buildScene (const YAML::Node &config)
FxShape buildShape (const YAML::Node &config)
FxVisualShape buildVisualShape (const YAML::Node &config)
FxCollisionShape buildCollisionShape (const YAML::Node &config)
std::shared_ptr< FxEntity > buildEntity (const std::string &entity_name, const YAML::Node &config)
std::shared_ptr< FxJoint > buildJoint (const std::string &joint_name, const YAML::Node &config, FxScene &scene)
FxScene buildScene (const std::string &textOrPath)
std::shared_ptr< FxEntity > buildEntity (const std::string &entity_name, const std::string &textOrPath)
FxShape buildShape (const std::string &textOrPath)
FxVisualShape buildVisualShape (const std::string &textOrPath)
FxVisualShape buildCollisionShape (const std::string &textOrPath)

Detailed Description

YAML parsing and scene-builder functions.

Function Documentation

◆ buildCollisionShape() [1/2]

FxVisualShape FxYAML::buildCollisionShape ( const std::string & textOrPath)
inline

Definition at line 60 of file YamlUtils.h.

◆ buildCollisionShape() [2/2]

FxCollisionShape FxYAML::buildCollisionShape ( const YAML::Node & config)

◆ buildEntity() [1/2]

std::shared_ptr< FxEntity > FxYAML::buildEntity ( const std::string & entity_name,
const std::string & textOrPath )
inline

Definition at line 46 of file YamlUtils.h.

◆ buildEntity() [2/2]

std::shared_ptr< FxEntity > FxYAML::buildEntity ( const std::string & entity_name,
const YAML::Node & config )

◆ buildJoint()

std::shared_ptr< FxJoint > FxYAML::buildJoint ( const std::string & joint_name,
const YAML::Node & config,
FxScene & scene )

◆ buildScene() [1/2]

FxScene FxYAML::buildScene ( const std::string & textOrPath)
inline

Definition at line 42 of file YamlUtils.h.

◆ buildScene() [2/2]

FxScene FxYAML::buildScene ( const YAML::Node & config)

◆ buildShape() [1/2]

FxShape FxYAML::buildShape ( const std::string & textOrPath)
inline

Definition at line 51 of file YamlUtils.h.

◆ buildShape() [2/2]

FxShape FxYAML::buildShape ( const YAML::Node & config)

◆ buildVisualShape() [1/2]

FxVisualShape FxYAML::buildVisualShape ( const std::string & textOrPath)
inline

Definition at line 55 of file YamlUtils.h.

◆ buildVisualShape() [2/2]

FxVisualShape FxYAML::buildVisualShape ( const YAML::Node & config)

◆ deIndent()

std::string FxYAML::deIndent ( const std::string & raw)

◆ LoadSmart()

YAML::Node FxYAML::LoadSmart ( const std::string & textOrPath)

◆ parseArray()

template<int N>
FxArray< float > FxYAML::parseArray ( const YAML::Node & node)
inline

Definition at line 24 of file YamlUtils.h.