run imgui demo

This commit is contained in:
2023-10-08 22:29:47 -07:00
parent 777afc11d3
commit 8125c18ae6
7 changed files with 142 additions and 22 deletions

View File

@@ -1,12 +1,12 @@
#ifndef KGE_FONTS_B612_MONO_H
#defineKGE_FONTS_B612_MONO_H
#define KGE_FONTS_B612_MONO_H
// File: 'B612_Mono/B612Mono-Regular.ttf' (136712 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int B612Mono_Regular.ttf_compressed_size = 72615;
static const unsigned int B612Mono_Regular.ttf_compressed_data[72616/4] =
static const unsigned int B612Mono_Regular_compressed_size = 72615;
static const unsigned int B612Mono_Regular_compressed_data[72616/4] =
{
0x0000bc57, 0x00000000, 0x08160200, 0x00000400, 0x00010025, 0x82100000, 0x00042e04, 0x2f534f00, 0xb5872c32, 0x0100005c, 0x3b1582c4, 0x4d445660,
0x712c6a58, 0x11000098, 0x05000024, 0x616d63e0, 0x736a3e70, 0x03000069, 0x04291382, 0x74766340, 0x0c5d0420, 0x202f8240, 0x2b2f8260, 0x6770662a,
@@ -1527,8 +1527,8 @@ static const unsigned int B612Mono_Regular.ttf_compressed_data[72616/4] =
// File: 'B612_Mono/B612Mono-Bold.ttf' (135904 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int B612Mono_Bold.ttf_compressed_size = 74748;
static const unsigned int B612Mono_Bold.ttf_compressed_data[74748/4] =
static const unsigned int B612Mono_Bold_compressed_size = 74748;
static const unsigned int B612Mono_Bold_compressed_data[74748/4] =
{
0x0000bc57, 0x00000000, 0xe0120200, 0x00000400, 0x00010025, 0x82100000, 0x00042e04, 0x2f534f00, 0xb5b32d32, 0x01000041, 0x3b1582c4, 0x4d445660,
0x712c6a58, 0x11000098, 0x0500000c, 0x616d63e0, 0x736a3e70, 0x03000069, 0x04291382, 0x74766340, 0x0c5d0420, 0x202f8240, 0x2c2f8260, 0x6770662a,
@@ -3094,8 +3094,8 @@ static const unsigned int B612Mono_Bold.ttf_compressed_data[74748/4] =
// File: 'B612_Mono/B612Mono-BoldItalic.ttf' (121732 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int B612Mono_BoldItalic.ttf_compressed_size = 69211;
static const unsigned int B612Mono_BoldItalic.ttf_compressed_data[69212/4] =
static const unsigned int B612Mono_BoldItalic_compressed_size = 69211;
static const unsigned int B612Mono_BoldItalic_compressed_data[69212/4] =
{
0x0000bc57, 0x00000000, 0x84db0100, 0x00000400, 0x00010025, 0x82100000, 0x00042e04, 0x2f534f00, 0xb5b32d32, 0x01000042, 0x3b1582c4, 0x4d445660,
0x712c6a58, 0x11000098, 0x05000044, 0x616d63e0, 0x736a3e70, 0x03000069, 0x04291382, 0x74766340, 0x0c5d0420, 0x202f8240, 0x2c2f8260, 0x6770662a,
@@ -4545,8 +4545,8 @@ static const unsigned int B612Mono_BoldItalic.ttf_compressed_data[69212/4] =
// File: 'B612_Mono/B612Mono-Italic.ttf' (118888 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int B612Mono_Italic.ttf_compressed_size = 67763;
static const unsigned int B612Mono_Italic.ttf_compressed_data[67764/4] =
static const unsigned int B612Mono_Italic_compressed_size = 67763;
static const unsigned int B612Mono_Italic_compressed_data[67764/4] =
{
0x0000bc57, 0x00000000, 0x68d00100, 0x00000400, 0x00010025, 0x82100000, 0x00042e04, 0x2f534f00, 0xb5872c32, 0x0100002a, 0x3b1582c4, 0x4d445660,
0x712c6a58, 0x11000098, 0x0500001c, 0x616d63e0, 0x736a3e70, 0x03000069, 0x04291382, 0x74766340, 0x0c5d0420, 0x202f8240, 0x2c2f8260, 0x6770662a,

View File

@@ -1,12 +1,12 @@
#ifndef KGE_FONTS_BRASSMONO_H
#defineKGE_FONTS_BRASSMONO_H
#define KGE_FONTS_BRASSMONO_H
// File: 'BrassMono/BrassMono-Italic.ttf' (38092 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int BrassMono_Italic.ttf_compressed_size = 29682;
static const unsigned int BrassMono_Italic.ttf_compressed_data[29684/4] =
static const unsigned int BrassMono_Italic_compressed_size = 29682;
static const unsigned int BrassMono_Italic_compressed_data[29684/4] =
{
0x0000bc57, 0x00000000, 0xcc940000, 0x00000400, 0x00010025, 0x82120000, 0x00042604, 0x49534420, 0x820d8247, 0xc494210c, 0x082c0782, 0x46454447,
0x9b002800, 0x2c010000, 0x1e280f82, 0x322f534f, 0x6bfcb98b, 0x4c200f82, 0x56280f82, 0x70616d63, 0xcbe7cd60, 0xa4300f82, 0x7a020000, 0x20747663,
@@ -633,8 +633,8 @@ static const unsigned int BrassMono_Italic.ttf_compressed_data[29684/4] =
// File: 'BrassMono/BrassMono-Bold.ttf' (38512 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int BrassMono_Bold.ttf_compressed_size = 28400;
static const unsigned int BrassMono_Bold.ttf_compressed_data[28400/4] =
static const unsigned int BrassMono_Bold_compressed_size = 28400;
static const unsigned int BrassMono_Bold_compressed_data[28400/4] =
{
0x0000bc57, 0x00000000, 0x70960000, 0x00000400, 0x00010025, 0x82120000, 0x00042604, 0x49534420, 0x820d8247, 0x6896210c, 0x082c0782, 0x46454447,
0x9b002800, 0x2c010000, 0x1e280f82, 0x322f534f, 0xd6fce48c, 0x4c200f82, 0x56280f82, 0x70616d63, 0xcbe7cd60, 0xa4300f82, 0x7a020000, 0x20747663,
@@ -1234,8 +1234,8 @@ static const unsigned int BrassMono_Bold.ttf_compressed_data[28400/4] =
// File: 'BrassMono/BrassMono-BoldItalic.ttf' (41424 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int BrassMono_BoldItalic.ttf_compressed_size = 30331;
static const unsigned int BrassMono_BoldItalic.ttf_compressed_data[30332/4] =
static const unsigned int BrassMono_BoldItalic_compressed_size = 30331;
static const unsigned int BrassMono_BoldItalic_compressed_data[30332/4] =
{
0x0000bc57, 0x00000000, 0xd0a10000, 0x00000400, 0x00010025, 0x82120000, 0x00042604, 0x49534420, 0x820d8247, 0xc8a1210c, 0x082c0782, 0x46454447,
0x9b002800, 0x2c010000, 0x1e280f82, 0x322f534f, 0x8bfce58c, 0x4c200f82, 0x56280f82, 0x70616d63, 0xcbe7cd60, 0xa4300f82, 0x7a020000, 0x20747663,
@@ -1875,8 +1875,8 @@ static const unsigned int BrassMono_BoldItalic.ttf_compressed_data[30332/4] =
// File: 'BrassMono/BrassMono-Regular.ttf' (36504 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int BrassMono_Regular.ttf_compressed_size = 28091;
static const unsigned int BrassMono_Regular.ttf_compressed_data[28092/4] =
static const unsigned int BrassMono_Regular_compressed_size = 28091;
static const unsigned int BrassMono_Regular_compressed_data[28092/4] =
{
0x0000bc57, 0x00000000, 0x988e0000, 0x00000400, 0x00010025, 0x82120000, 0x00042604, 0x49534420, 0x820d8247, 0x908e210c, 0x082c0782, 0x46454447,
0x9b002800, 0x2c010000, 0x1e280f82, 0x322f534f, 0xf6fcb88b, 0x4c200f82, 0x56280f82, 0x70616d63, 0xcbe7cd60, 0xa4300f82, 0x7a020000, 0x20747663,

View File

@@ -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: