GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_wmod.cc File Reference
#include "GameApi_h.hh"
#include "GameApi_gui.hh"
Include dependency graph for GameApi_wmod.cc:

Classes

struct  codegen_item
class  CodeGenPositions
struct  NameValue

Functions

std::string deploy_replace_string (std::string res, std::string subst, std::string repl)
bool is_hexify (std::string s)
std::string hexify (std::string s)
std::string unhexify (std::string s)
std::vector< GameApiItem * > all_functions (GameApi::EveryApi &ev)
void fill_gline (GameApi::EveryApi &ev, GameApiLine &line)
GameApiModule load_gameapi (GameApi::EveryApi &ev, std::string filename)
void save_gameapi (const GameApiModule &mod, std::string filename)
std::vector< int > reduce_list_to_indexes_only (std::vector< std::string > type_names, std::vector< int > indexes)
std::vector< std::string > reduce_list_to_string_only (std::vector< std::string > type_names, std::vector< std::string > indexes)
std::vector< std::string > reduce_list_to_types_only (std::vector< std::string > type_names)
std::vector< std::string > remove_unnecessary_labels (std::vector< std::string > types, std::vector< std::string > labels)
std::vector< std::string > filter_unnecessary_types (std::vector< std::string > vec)
std::vector< std::string * > remove_unnecessary_refs (std::vector< std::string * > refs, std::vector< std::string > param_types)
std::vector< std::string * > remove_unnecessary_exprs (std::vector< std::string * > exprs, std::vector< std::string > param_types)
std::string to_upper (std::string s)
IMPORT void InstallProgress (int num, std::string label, int max)
IMPORT void ProgressBar (int num, int val, int max, std::string label)
int env_counter (bool reset)
int ret_type_count (std::string return_type)
IMPORT void clear_codegen ()
void push_codegen (int id, std::string line_uid, std::string ret_id)
std::string find_codegen (int id, std::string line_uid, bool &success)
bool has_envparams_markers (std::string s)
bool is_one_of (std::string str, std::string chars)
std::string FloatExprEval (std::string s)
std::string StringExprEval (std::string s)
std::string IntExprEval (std::string s)
std::vector< std::string > combine_vec (std::vector< std::string > v1, std::vector< std::string > v2)
std::string str_tolower (std::string s)
std::string ret_type_index (std::string return_type, int index)
std::string json_string (std::string data)
std::string json_array (std::vector< std::string > vec)
std::string json_number (int i)
std::string json_object (std::vector< NameValue > vec)
std::vector< GameApiItem * > polydistfield_functions ()
std::vector< GameApiItem * > waveform_functions ()
std::vector< GameApiItem * > blocker_functions (GameApi::EveryApi &ev)
std::vector< GameApiItem * > textureapi_functions ()
std::vector< GameApiItem * > volumeapi_functions ()
std::vector< GameApiItem * > floatvolumeapi_functions ()
std::vector< GameApiItem * > colorvolumeapi_functions ()
std::vector< GameApiItem * > vectorapi_functions ()
std::vector< GameApiItem * > pointapi_functions ()
std::vector< GameApiItem * > fontapi_functions ()
std::vector< GameApiItem * > moveapi_functions ()
std::vector< GameApiItem * > polygonapi_functions ()
std::vector< GameApiItem * > shadermoduleapi_functions ()
std::vector< GameApiItem * > shaderapi_functions ()
std::vector< GameApiItem * > framebuffermoduleapi_functions ()
std::vector< GameApiItem * > booleanopsapi_functions ()
std::vector< GameApiItem * > polygonapi_functions1 ()
std::vector< GameApiItem * > polygonapi_functions2 ()
std::vector< GameApiItem * > linesapi_functions ()
std::vector< GameApiItem * > pointsapi_functions ()
std::vector< GameApiItem * > floatbitmapapi_functions ()
std::vector< GameApiItem * > boolbitmapapi_functions ()
std::vector< GameApiItem * > bitmapapi_functions ()
void set_mouse_move_cb (GuiWidget *w, void(*fptr)(void *), void *data)

Variables

std::vector< codegen_item > codegen_cache
std::vector< std::string > g_float_eval_env
std::vector< std::string > g_int_eval_env
std::vector< std::string > g_string_eval_env
IMPORT std::vector< std::vector< std::string > > g_collect_authors
IMPORT std::vector< std::vector< std::string > > g_collect_licenses

Function Documentation

◆ all_functions()

std::vector< GameApiItem * > all_functions ( GameApi::EveryApi & ev)

◆ bitmapapi_functions()

std::vector< GameApiItem * > bitmapapi_functions ( )
Here is the caller graph for this function:

◆ blocker_functions()

std::vector< GameApiItem * > blocker_functions ( GameApi::EveryApi & ev)

◆ boolbitmapapi_functions()

std::vector< GameApiItem * > boolbitmapapi_functions ( )
Here is the caller graph for this function:

◆ booleanopsapi_functions()

std::vector< GameApiItem * > booleanopsapi_functions ( )
Here is the caller graph for this function:

◆ clear_codegen()

IMPORT void clear_codegen ( )
Here is the caller graph for this function:

◆ colorvolumeapi_functions()

std::vector< GameApiItem * > colorvolumeapi_functions ( )
Here is the caller graph for this function:

◆ combine_vec()

std::vector< std::string > combine_vec ( std::vector< std::string > v1,
std::vector< std::string > v2 )
Here is the caller graph for this function:

◆ deploy_replace_string()

std::string deploy_replace_string ( std::string res,
std::string subst,
std::string repl )
Here is the caller graph for this function:

◆ env_counter()

int env_counter ( bool reset)
Here is the caller graph for this function:

◆ fill_gline()

void fill_gline ( GameApi::EveryApi & ev,
GameApiLine & line )
Here is the caller graph for this function:

◆ filter_unnecessary_types()

std::vector< std::string > filter_unnecessary_types ( std::vector< std::string > vec)
Here is the caller graph for this function:

◆ find_codegen()

std::string find_codegen ( int id,
std::string line_uid,
bool & success )
Here is the caller graph for this function:

◆ floatbitmapapi_functions()

std::vector< GameApiItem * > floatbitmapapi_functions ( )
Here is the caller graph for this function:

◆ FloatExprEval()

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

◆ floatvolumeapi_functions()

std::vector< GameApiItem * > floatvolumeapi_functions ( )
Here is the caller graph for this function:

◆ fontapi_functions()

std::vector< GameApiItem * > fontapi_functions ( )
Here is the caller graph for this function:

◆ framebuffermoduleapi_functions()

std::vector< GameApiItem * > framebuffermoduleapi_functions ( )
Here is the caller graph for this function:

◆ has_envparams_markers()

bool has_envparams_markers ( std::string s)

◆ hexify()

std::string hexify ( std::string s)
Here is the caller graph for this function:

◆ InstallProgress()

IMPORT void InstallProgress ( int num,
std::string label,
int max )

◆ IntExprEval()

std::string IntExprEval ( std::string s)
Here is the caller graph for this function:

◆ is_hexify()

bool is_hexify ( std::string s)
Here is the caller graph for this function:

◆ is_one_of()

bool is_one_of ( std::string str,
std::string chars )

◆ json_array()

std::string json_array ( std::vector< std::string > vec)

◆ json_number()

std::string json_number ( int i)

◆ json_object()

std::string json_object ( std::vector< NameValue > vec)

◆ json_string()

std::string json_string ( std::string data)

◆ linesapi_functions()

std::vector< GameApiItem * > linesapi_functions ( )

◆ load_gameapi()

GameApiModule load_gameapi ( GameApi::EveryApi & ev,
std::string filename )

◆ moveapi_functions()

std::vector< GameApiItem * > moveapi_functions ( )

◆ pointapi_functions()

std::vector< GameApiItem * > pointapi_functions ( )

◆ pointsapi_functions()

std::vector< GameApiItem * > pointsapi_functions ( )

◆ polydistfield_functions()

std::vector< GameApiItem * > polydistfield_functions ( )

◆ polygonapi_functions()

std::vector< GameApiItem * > polygonapi_functions ( )

◆ polygonapi_functions1()

std::vector< GameApiItem * > polygonapi_functions1 ( )
Here is the caller graph for this function:

◆ polygonapi_functions2()

std::vector< GameApiItem * > polygonapi_functions2 ( )

◆ ProgressBar()

IMPORT void ProgressBar ( int num,
int val,
int max,
std::string label )

std::cout << "ProgressBar: '" << num << " " << label << " " << val << " " << max << "'" << std::endl;

◆ push_codegen()

void push_codegen ( int id,
std::string line_uid,
std::string ret_id )
Here is the caller graph for this function:

◆ reduce_list_to_indexes_only()

std::vector< int > reduce_list_to_indexes_only ( std::vector< std::string > type_names,
std::vector< int > indexes )
Here is the caller graph for this function:

◆ reduce_list_to_string_only()

std::vector< std::string > reduce_list_to_string_only ( std::vector< std::string > type_names,
std::vector< std::string > indexes )
Here is the caller graph for this function:

◆ reduce_list_to_types_only()

std::vector< std::string > reduce_list_to_types_only ( std::vector< std::string > type_names)
Here is the caller graph for this function:

◆ remove_unnecessary_exprs()

std::vector< std::string * > remove_unnecessary_exprs ( std::vector< std::string * > exprs,
std::vector< std::string > param_types )
Here is the caller graph for this function:

◆ remove_unnecessary_labels()

std::vector< std::string > remove_unnecessary_labels ( std::vector< std::string > types,
std::vector< std::string > labels )
Here is the caller graph for this function:

◆ remove_unnecessary_refs()

std::vector< std::string * > remove_unnecessary_refs ( std::vector< std::string * > refs,
std::vector< std::string > param_types )
Here is the caller graph for this function:

◆ ret_type_count()

int ret_type_count ( std::string return_type)

◆ ret_type_index()

std::string ret_type_index ( std::string return_type,
int index )

◆ save_gameapi()

void save_gameapi ( const GameApiModule & mod,
std::string filename )

◆ set_mouse_move_cb()

void set_mouse_move_cb ( GuiWidget * w,
void(* fptr )(void *),
void * data )

◆ shaderapi_functions()

std::vector< GameApiItem * > shaderapi_functions ( )
Here is the caller graph for this function:

◆ shadermoduleapi_functions()

std::vector< GameApiItem * > shadermoduleapi_functions ( )

◆ str_tolower()

std::string str_tolower ( std::string s)

◆ StringExprEval()

std::string StringExprEval ( std::string s)
Here is the caller graph for this function:

◆ textureapi_functions()

std::vector< GameApiItem * > textureapi_functions ( )

◆ to_upper()

std::string to_upper ( std::string s)
Here is the caller graph for this function:

◆ unhexify()

std::string unhexify ( std::string s)
Here is the caller graph for this function:

◆ vectorapi_functions()

std::vector< GameApiItem * > vectorapi_functions ( )

◆ volumeapi_functions()

std::vector< GameApiItem * > volumeapi_functions ( )

◆ waveform_functions()

std::vector< GameApiItem * > waveform_functions ( )

Variable Documentation

◆ codegen_cache

std::vector<codegen_item> codegen_cache

◆ g_collect_authors

IMPORT std::vector<std::vector<std::string> > g_collect_authors

◆ g_collect_licenses

IMPORT std::vector<std::vector<std::string> > g_collect_licenses

◆ g_float_eval_env

std::vector<std::string> g_float_eval_env
extern

◆ g_int_eval_env

std::vector<std::string> g_int_eval_env
extern

◆ g_string_eval_env

std::vector<std::string> g_string_eval_env
extern