run imgui demo
This commit is contained in:
@@ -8,7 +8,8 @@ import subprocess
|
||||
DEFAULT_FONTS = ['B612_Mono', 'BrassMono']
|
||||
|
||||
def generate_font(header_file, path):
|
||||
symbol_name=os.path.basename(path).replace('-', '_')
|
||||
symbol_name=os.path.splitext(os.path.basename(path))[0]
|
||||
symbol_name=symbol_name.replace('-', '_')
|
||||
output = subprocess.check_output(
|
||||
f'binary_to_compressed_c "{path}" {symbol_name}',
|
||||
shell=True)
|
||||
@@ -24,7 +25,7 @@ def generate_header(header, guard, files):
|
||||
raise
|
||||
with open(header, 'wt') as header_file:
|
||||
header_file.write(f"""#ifndef {guard}
|
||||
#define{guard}
|
||||
#define {guard}
|
||||
|
||||
""")
|
||||
for file in files:
|
||||
|
||||
Reference in New Issue
Block a user