Fix text rendering
This commit is contained in:
parent
af6967151e
commit
1a200205a5
12 changed files with 214 additions and 68 deletions
17
make.py
17
make.py
|
|
@ -9,7 +9,7 @@ from umake import get_hash, make
|
|||
|
||||
class Config:
|
||||
CC = 'g++'
|
||||
APPS = ['test/example_gl']
|
||||
APPS = ['test/example_gl', 'test/benchmark_text']
|
||||
IGNORE_APPS = []
|
||||
JOB_COUNT = int(os.cpu_count() * 0.8)
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ class Config:
|
|||
|
||||
COMMON_FLAGS = '-std=c++17 -fno-semantic-interposition'
|
||||
COMMON_DEBUG_FLAGS = '-g -DDEBUG'
|
||||
COMMON_RELEASE_FLAGS = '-O2' # -flto'
|
||||
COMMON_RELEASE_FLAGS = '-O2 -flto'
|
||||
COMPILE_FLAGS = f'-Wall -I{INCLUDE_DIR} `pkg-config --cflags glfw3 vulkan gl x11 freetype2`'
|
||||
LINK_FLAGS = '-lpthread -ldl `pkg-config --libs glfw3 vulkan gl x11 freetype2`'
|
||||
|
||||
|
|
@ -31,19 +31,6 @@ class Config:
|
|||
|
||||
def main():
|
||||
def pre_compile():
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
# Compiling vulkan shaders
|
||||
# for shader_path in (
|
||||
# list((Config.SOURCE_DIR / 'uui' / 'vulkan').rglob('*.vert'))
|
||||
# + list((Config.SOURCE_DIR / 'uui' / 'vulkan').rglob('*.frag'))):
|
||||
# out_path = Config.BIN_DIR / shader_path.relative_to(Config.SOURCE_DIR)
|
||||
# if not out_path.parent.exists():
|
||||
# out_path.parent.mkdir(parents=True)
|
||||
# if subprocess.run(['glslc', str(shader_path), '-o', str(out_path) + '.spv']).returncode != 0:
|
||||
# print(f'Error while compiling shader {shader_path}')
|
||||
# return
|
||||
>>>>>>> 675cbbf (Correct resize and safer pointers)
|
||||
# Copying OpenGL shaders
|
||||
src_opengl_shader_path = Config.SOURCE_DIR / 'uui' / 'opengl' / 'shaders'
|
||||
for shader_path in (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue