|
GameApi 28
Library used by GameApi Builder tool
|
#include "GameApi_short_defines.hh"

Go to the source code of this file.
Classes | |
| struct | DelApiItemF |
| class | TypeToString< T > |
| struct | ApiSplit |
| struct | add_all<... > |
| struct | add_all< X, Xs... > |
| class | ApiItem< RT, P > |
| class | FromStreamClass< T > |
| class | FromStreamClass< float > |
| class | FromStreamClass< std::string > |
| class | FromStreamClass< GameApi::EveryApi & > |
| class | FromStreamClass< bool > |
| class | FromStreamClass< unsigned int > |
| class | FromStreamClass< std::vector< std::string > > |
| class | FromStreamClass< std::vector< T > > |
| class | EnvGameApiItem_int |
| class | EnvGameApiItem_string |
| class | EnvGameApiItem_float |
| class | EnvGameApiItem_arr |
| class | EnvGameApiItem_arr_p |
Macros | |
| #define | FEATURE_GLTF 1 |
| #define | FEATURE_VOXEL 1 |
| #define | FEATURE_VOLUME 1 |
| #define | FEATURE_FONT 1 |
| #define | FEATURE_MATERIAL 1 |
| #define | FEATURE_FRAMEBUFFER 1 |
| #define | FEATURE_PTS 1 |
| #define | FEATURE_WAVEFORM 1 |
| #define | FEATURE_GUI 1 |
| #define | FEATURE_BOOLEANOPS 1 |
| #define | FEATURE_OGL_SETUP 1 |
| #define | MACRO2(lab, funccall) |
| #define | MAC(a) |
| #define | MACRO(lab) |
Functions | |
| int | ret_type_count (std::string s) |
| int | to_int (std::string s) |
| float | to_float (std::string s) |
| template<class T> | |
| void | set_empty (GameApi::EveryApi &ev, T &t) |
| MACRO2(GameApi::LI, ev.lines_api.from_polygon(ev.polygon_api.p_empty())) MACRO2(GameApi std::string | unique_id_apiitem () |
| template<class T, class RT, class... P> | |
| int | funccall (std::stringstream &ss, GameApi::Env &ee, GameApi::EveryApi &ev, T(GameApi::EveryApi::*api), RT(T::*fptr)(P...), std::vector< std::string > s, GameApi::ExecuteEnv &e, const std::vector< std::string > ¶m_name, const std::string &return_type) |
| std::pair< std::string, std::string > | CodeGen_1 (GameApi::EveryApi &ev, std::vector< std::string > params, std::vector< std::string > param_names, std::vector< std::string > param_type, std::vector< std::string > param_exprs, std::string return_type, std::string api_name, std::string func_name, int j) |
| ApiSplit | split_api_default (std::string def) |
| bool | print_if_false (const bool assertion, std::string msg) |
| std::string | FloatExprEval (std::string s) |
| int | find_float_ch (std::string s, char ch) |
| void | funccall_1 (std::vector< std::string > &s, GameApi::ExecuteEnv &e, std::vector< std::string > param_name) |
| template<typename T> | |
| T | from_stream2 (std::stringstream &is, GameApi::EveryApi &ev) |
| template<class T, class RT, class... P> | |
| GameApiItem * | ApiItemF (T(GameApi::EveryApi::*api), RT(T::*fptr)(P...), std::string name, std::vector< std::string > param_name, std::vector< std::string > param_type, std::vector< std::string > param_default, std::string return_type, std::string api_name, std::string func_name, std::string symbols="", std::string comment="") |
| std::vector< std::string > | parse_sep (std::string s, char sep) |
| std::vector< std::string > | choose_param3 (std::vector< std::string > vec, int ii) |
| std::string | generate_seq (int n, int count) |
| std::string | replace_str (std::string code, std::string repl, std::string subst) |
Variables | |
| DelApiItemF | g_api_item_deleter |
| #define FEATURE_BOOLEANOPS 1 |
| #define FEATURE_FONT 1 |
| #define FEATURE_FRAMEBUFFER 1 |
| #define FEATURE_GLTF 1 |
| #define FEATURE_GUI 1 |
| #define FEATURE_MATERIAL 1 |
| #define FEATURE_OGL_SETUP 1 |
| #define FEATURE_PTS 1 |
| #define FEATURE_VOLUME 1 |
| #define FEATURE_VOXEL 1 |
| #define FEATURE_WAVEFORM 1 |
| #define MAC | ( | a | ) |
| #define MACRO | ( | lab | ) |
| #define MACRO2 | ( | lab, | |
| funccall ) |
| GameApiItem * ApiItemF | ( | T GameApi::EveryApi::* | api, |
| RT(T::* | fptr )(P...), | ||
| std::string | name, | ||
| std::vector< std::string > | param_name, | ||
| std::vector< std::string > | param_type, | ||
| std::vector< std::string > | param_default, | ||
| std::string | return_type, | ||
| std::string | api_name, | ||
| std::string | func_name, | ||
| std::string | symbols = "", | ||
| std::string | comment = "" ) |
|
inline |

| std::pair< std::string, std::string > CodeGen_1 | ( | GameApi::EveryApi & | ev, |
| std::vector< std::string > | params, | ||
| std::vector< std::string > | param_names, | ||
| std::vector< std::string > | param_type, | ||
| std::vector< std::string > | param_exprs, | ||
| std::string | return_type, | ||
| std::string | api_name, | ||
| std::string | func_name, | ||
| int | j ) |

| int find_float_ch | ( | std::string | s, |
| char | ch ) |

| std::string FloatExprEval | ( | std::string | s | ) |

| T from_stream2 | ( | std::stringstream & | is, |
| GameApi::EveryApi & | ev ) |

| int funccall | ( | std::stringstream & | ss, |
| GameApi::Env & | ee, | ||
| GameApi::EveryApi & | ev, | ||
| T GameApi::EveryApi::* | api, | ||
| RT(T::* | fptr )(P...), | ||
| std::vector< std::string > | s, | ||
| GameApi::ExecuteEnv & | e, | ||
| const std::vector< std::string > & | param_name, | ||
| const std::string & | return_type ) |
| void funccall_1 | ( | std::vector< std::string > & | s, |
| GameApi::ExecuteEnv & | e, | ||
| std::vector< std::string > | param_name ) |

|
inline |

| std::vector< std::string > parse_sep | ( | std::string | s, |
| char | sep ) |

|
inline |

| std::string replace_str | ( | std::string | code, |
| std::string | repl, | ||
| std::string | subst ) |

| int ret_type_count | ( | std::string | s | ) |

| void set_empty | ( | GameApi::EveryApi & | ev, |
| T & | t ) |
| ApiSplit split_api_default | ( | std::string | def | ) |

| float to_float | ( | std::string | s | ) |

| int to_int | ( | std::string | s | ) |
| MACRO2(GameApi::LI, ev.lines_api.from_polygon(ev.polygon_api.p_empty())) MACRO2(GameApi std::string unique_id_apiitem | ( | ) |
|
extern |