- Forked from Godot Engine 4.7-dev (MIT License) - Rebranded to AeThex Engine with cyan/purple theme - Added AI-powered development assistant module - Integrated Claude API for code completion & error fixing - Custom hexagon logo and branding - Multi-platform CI/CD (Windows, Linux, macOS) - Built Linux editor binary (151MB) - Complete source code with all customizations Tech Stack: - C++ game engine core - AI Module: Claude 3.5 Sonnet integration - Build: SCons, 14K+ source files - License: MIT (Godot) + Custom (AeThex features) Ready for Windows build via GitHub Actions!
21 lines
610 B
Python
21 lines
610 B
Python
"""Functions used to generate source files during build time"""
|
|
|
|
import os
|
|
|
|
import methods
|
|
|
|
|
|
def make_fonts_header(target, source, env):
|
|
with methods.generated_wrapper(str(target[0])) as file:
|
|
for src in map(str, source):
|
|
# Saving uncompressed, since FreeType will reference from memory pointer.
|
|
buffer = methods.get_buffer(src)
|
|
name = os.path.splitext(os.path.basename(src))[0]
|
|
|
|
file.write(f"""\
|
|
inline constexpr int _font_{name}_size = {len(buffer)};
|
|
inline constexpr unsigned char _font_{name}[] = {{
|
|
{methods.format_buffer(buffer, 1)}
|
|
}};
|
|
|
|
""")
|