CPP-TOOLBOX
Loading...
Searching...
No Matches
main.py File Reference

Classes

class  main.DrawInfo
 
class  main.ShaderBatcherCppStruct
 
class  main.ShaderBatcherCppClass
 
class  main.BatcherCppClassCreator
 
class  main.ShaderRequest
 

Namespaces

namespace  main
 

Functions

 main.snake_to_camel_case (snake_str)
 
 main.get_draw_data_struct_name (ShaderType shader_type)
 
 main.list_available_shaders (shader_to_used_vertex_attribute_variables)
 
 main.wipe_generated_directory ()
 
List[ShaderRequestmain.get_required_shaders (config_file)
 
List["ShaderRequest"] main.validate_shader_specs (List[str] shader_specs)
 

Variables

str main.constructor_body_template
 
str main.destructor_body_template
 
str main.TAB = " "
 
dict main.draw_info_struct_hierarchy
 
dict main.shader_vertex_attribute_variables_to_valid_draw_info_structs
 
CppParameter main.ivp_param
 
CppParameter main.ivp_param_ref
 
CppParameter main.ivpn_param
 
CppParameter main.ivpn_param_ref = CppParameter("ivpn", DrawInfo.IVPNORMALS.value, "", True)
 
CppParameter main.ivpc_param
 
CppParameter main.ivpc_param_ref = CppParameter("ivpc", DrawInfo.IVPCOLOR.value, "", True)
 
CppParameter main.ivpnc_param
 
CppParameter main.ivpnc_param_ref
 
dict main.ivpX_struct_to_param_ref
 
dict main.ivpX_param_to_superclass_params
 
dict main.ivpX_param_ref_to_superclass_param_refs
 
 main.parser = argparse.ArgumentParser(description="Generate C++ shader batcher classes.")
 
 main.action
 
 main.help
 
 main.type
 
 main.default
 
 main.args = parser.parse_args()
 
 main.user_shader_requests
 
 main.config_file_path
 
 main.shader_name = str(shader).split(".")[-1].lower()
 
list main.constructed_class_names = []
 
list main.constructed_header_files = []
 
str main.script_directory = os.path.dirname(os.path.abspath(__file__)) + "/generated"
 
int main.num_elements_in_buffer = 100000
 
str main.header_file = f"{shader_type.name.lower()}_shader_batcher.hpp"
 
 main.header_filename
 
 main.source_filename
 
 main.shader_batcher_header_and_source
 
 main.shader_batcher
 
 main.batcher_class = shader_batcher.generate_cpp_class()
 
 main.source_content = shader_batcher_header_and_source.generate_source_content()
 
 main.header_content = shader_batcher_header_and_source.generate_header_content()
 
 main.batcher_cpp_class_creator = BatcherCppClassCreator(constructed_class_names)
 
tuple main.include_statements
 
 main.batcher_header_and_source = CppHeaderAndSource("batcher")