mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +01:00
Added other merged variants.
This commit is contained in:
parent
64411c3983
commit
4cece05e74
@ -12,7 +12,7 @@ python tools/merger/join.py --template tools/merger/sfw_core.cpp.inl --path . --
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_full.h.inl --path . --output tools/merger/out/full/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_full.cpp.inl --path . --output tools/merger/out/full/sfw.cpp
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd_full.x.inl --path . --output tools/merger/out/full/sfw_3rd.m
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd.x.inl --path . --output tools/merger/out/full/sfw_3rd.m
|
||||
|
||||
echo "Running clang format!"
|
||||
|
||||
|
80
tools/merger/join_all.sh
Executable file
80
tools/merger/join_all.sh
Executable file
@ -0,0 +1,80 @@
|
||||
mkdir -p out
|
||||
|
||||
mkdir -p out/core
|
||||
mkdir -p out/object
|
||||
mkdir -p out/render_core
|
||||
mkdir -p out/render_immediate
|
||||
mkdir -p out/render_objects
|
||||
mkdir -p out/full
|
||||
|
||||
mkdir -p out/sfwl_core
|
||||
mkdir -p out/sfwl_full
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
|
||||
# SFW
|
||||
python tools/merger/join.py --template tools/merger/sfw_core.h.inl --path . --output tools/merger/out/core/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_core.cpp.inl --path . --output tools/merger/out/core/sfw.cpp
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_object.h.inl --path . --output tools/merger/out/object/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_object.cpp.inl --path . --output tools/merger/out/object/sfw.cpp
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_core.h.inl --path . --output tools/merger/out/render_core/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_core.cpp.inl --path . --output tools/merger/out/render_core/sfw.cpp
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd.x.inl --path . --output tools/merger/out/render_core/sfw_3rd.m
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_immediate.h.inl --path . --output tools/merger/out/render_immediate/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_immediate.cpp.inl --path . --output tools/merger/out/render_immediate/sfw.cpp
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd.x.inl --path . --output tools/merger/out/render_immediate/sfw_3rd.m
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_objects.h.inl --path . --output tools/merger/out/render_objects/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_render_objects.cpp.inl --path . --output tools/merger/out/render_objects/sfw.cpp
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd.x.inl --path . --output tools/merger/out/render_objects/sfw_3rd.m
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfw_full.h.inl --path . --output tools/merger/out/full/sfw.h
|
||||
python tools/merger/join.py --template tools/merger/sfw_full.cpp.inl --path . --output tools/merger/out/full/sfw.cpp
|
||||
python tools/merger/join.py --template tools/merger/sfw_3rd.x.inl --path . --output tools/merger/out/full/sfw_3rd.m
|
||||
|
||||
# SFWL
|
||||
python tools/merger/join.py --template tools/merger/sfwl/sfwl_core.h.inl --path . --output tools/merger/out/sfwl_core/sfwl.h
|
||||
python tools/merger/join.py --template tools/merger/sfwl/sfwl_core.cpp.inl --path . --output tools/merger/out/sfwl_core/sfwl.cpp
|
||||
|
||||
python tools/merger/join.py --template tools/merger/sfwl/sfwl_full.h.inl --path . --output tools/merger/out/sfwl_full/sfwl.h
|
||||
python tools/merger/join.py --template tools/merger/sfwl/sfwl_full.cpp.inl --path . --output tools/merger/out/sfwl_full/sfwl.cpp
|
||||
|
||||
|
||||
echo "Running clang format!"
|
||||
|
||||
# SFW
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/core/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/core/sfw.cpp
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/object/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/object/sfw.cpp
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_core/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_core/sfw.cpp
|
||||
#clang-format --Wno-error=unknown -i tools/merger/out/render_core/sfw_3rd.m
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_immediate/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_immediate/sfw.cpp
|
||||
#clang-format --Wno-error=unknown -i tools/merger/out/render_immediate/sfw_3rd.m
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_objects/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/render_objects/sfw.cpp
|
||||
#clang-format --Wno-error=unknown -i tools/merger/out/render_objects/sfw_3rd.m
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/full/sfw.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/full/sfw.cpp
|
||||
#clang-format --Wno-error=unknown -i tools/merger/out/full/sfw_3rd.m
|
||||
|
||||
#SFWL
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/sfwl_core/sfwl.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/sfwl_core/sfwl.cpp
|
||||
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/sfwl_full/sfwl.h
|
||||
clang-format --Wno-error=unknown -i tools/merger/out/sfwl_full/sfwl.cpp
|
||||
|
||||
|
@ -674,7 +674,7 @@
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_immediate/renderer.cpp}}
|
||||
|
||||
//=================== RENDER OBJCTS SECTION ===================
|
||||
//=================== RENDER OBJECTS SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "render_objects/camera_3d.h"
|
||||
|
@ -747,7 +747,7 @@
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_immediate/renderer.h}}
|
||||
|
||||
//=================== RENDER OBJCTS SECTION ===================
|
||||
//=================== RENDER OBJECTS SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
|
301
tools/merger/sfw_object.cpp.inl
Normal file
301
tools/merger/sfw_object.cpp.inl
Normal file
@ -0,0 +1,301 @@
|
||||
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#include <wchar.h>
|
||||
#include <cstdint>
|
||||
#include <memory.h>
|
||||
|
||||
#if !defined(_WIN64) && !defined(_WIN32)
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef SFW_H
|
||||
#include "sfw.h"
|
||||
#endif
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/core/ucaps.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.cpp}}
|
||||
//--STRIP
|
||||
//#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/error/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "thread.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/sfw_time.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.cpp}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/core/old/directory.cpp}}
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.cpp}}
|
||||
//--STRIP
|
||||
//#include "pool_allocator.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "ucaps.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/basis.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.cpp}}
|
||||
//--STRIP
|
||||
//#include "face3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/plane.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//#include "core/rect2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "file_access.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "dir_access.h"
|
||||
//#include "3rd_tinydir.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//System includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//Win Only
|
||||
//#include <avrt.h>
|
||||
//#include <direct.h>
|
||||
//#include <knownfolders.h>
|
||||
//#include <process.h>
|
||||
//#include <regstr.h>
|
||||
//#include <shlobj.h>
|
||||
//#include <wchar.h>
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.cpp}}
|
||||
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object_rc.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.cpp}}
|
||||
//--STRIP
|
||||
//#include "ref_ptr.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.cpp}}
|
||||
//--STRIP
|
||||
//#include "core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.cpp}}
|
||||
//--STRIP
|
||||
//#include "dictionary.h"
|
||||
//#include "core/ordered_hash_map.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/variant.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.cpp}}
|
||||
//--STRIP
|
||||
//#include "array.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.cpp}}
|
||||
//--STRIP
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant_op.cpp}}
|
562
tools/merger/sfw_object.h.inl
Normal file
562
tools/merger/sfw_object.h.inl
Normal file
@ -0,0 +1,562 @@
|
||||
#ifndef SFW_H
|
||||
#define SFW_H
|
||||
|
||||
{{FILEINLINE:sfw/core/version.h}}
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
|
||||
// MODULES:
|
||||
// CORE + OBJECT
|
||||
|
||||
// LICENSES:
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
|
||||
#ifndef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/int_types.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_defs.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_list.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/typedefs.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/math_defs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/marshalls.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#if !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include <thread>
|
||||
//#endif
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_macros.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rw_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/spin_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread_safe.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Simple almost dependencyless containers
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/cowdata.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sort_array.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_set.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vmap.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vset.h}}
|
||||
//--STRIP
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/list.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ring_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "spin_lock.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/paged_allocator.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.h}}
|
||||
|
||||
//--STRIP
|
||||
//Strings they need vector.h, and cowdata.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_range.inc}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/char_range.inc"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_utils.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "char_utils.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.h}}
|
||||
|
||||
//--STRIP
|
||||
//Needs ustring.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "pool_allocator.h"
|
||||
//#include "rw_lock.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/tight_local_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/local_vector.h}}
|
||||
|
||||
//--STRIP
|
||||
//Math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h" // also includes math_funcs and ustring
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h" // also includes math_funcs and ustring
|
||||
//#include "core/rect2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.h}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/rect2.h" // also includes vector2, math_funcs, and ustring
|
||||
//#include "core/rect2i.h" // also includes vector2i, math_funcs, and ustring
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.h}}
|
||||
|
||||
//--STRIP
|
||||
//hashfuncs.h Needs most math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hashfuncs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Containers that need hashfuncs.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pair.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/og_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/og_hash_map.h"
|
||||
//#include "core/pair.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ordered_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "paged_allocator.h"
|
||||
//#include "pair.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_set.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//also needs vector
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "int_types.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.h}}
|
||||
//--STRIP
|
||||
//#include "inet_address.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include <stdio.h>
|
||||
//Win Only
|
||||
//#include "core/local_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.h}}
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.h}}
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//Dependencyless stuff
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_id.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.h}}
|
||||
|
||||
//--STRIP
|
||||
//Variants
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/array.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/face3.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/projection.h"
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "object/array.h"
|
||||
//#include "object/dictionary.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//#include "object/object_id.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.h}}
|
||||
|
||||
//--STRIP
|
||||
//Stuff that needs Variant
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/rw_lock.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object_id.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/dictionary.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_rc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.h}}
|
||||
|
||||
#endif
|
659
tools/merger/sfw_render_core.cpp.inl
Normal file
659
tools/merger/sfw_render_core.cpp.inl
Normal file
@ -0,0 +1,659 @@
|
||||
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#include <wchar.h>
|
||||
#include <cstdint>
|
||||
#include <memory.h>
|
||||
|
||||
#if !defined(_WIN64) && !defined(_WIN32)
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef SFW_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#include "sfw.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
#endif //__APPLE__
|
||||
|
||||
#endif //SFW_H
|
||||
|
||||
// On OSX sfw_3rd.m has to be compiled manually on Objective C Mode.
|
||||
#ifndef __APPLE__
|
||||
|
||||
#ifndef SFW_3RD_IMPL
|
||||
#define SFW_3RD_IMPL
|
||||
|
||||
#if defined(__linux__)
|
||||
//typedef XID Font;
|
||||
#define Font The_Font_I_dont_care
|
||||
#endif
|
||||
|
||||
// Note: On Windows we need to make sure that
|
||||
// GLFW includes it's needed windows headers first, as it has quite a bit of setup.
|
||||
// Also windows headers can define quite a bit of stuff like far and near macros
|
||||
// Wee need to make sure it's safe to undo those as soon as possible
|
||||
// This means that <windows.h> cannot be included in sfw.h if rendering is enabled.
|
||||
// Also since it pull in lots of defines it probably shouldn't anyway.
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
|
||||
#undef CursorShape
|
||||
|
||||
#if defined(__linux__)
|
||||
#undef Font
|
||||
#undef KEY_ESC
|
||||
#undef KEY_TICK
|
||||
#undef KEY_1
|
||||
#undef KEY_2
|
||||
#undef KEY_3
|
||||
#undef KEY_4
|
||||
#undef KEY_5
|
||||
#undef KEY_6
|
||||
#undef KEY_7
|
||||
#undef KEY_8
|
||||
#undef KEY_9
|
||||
#undef KEY_0
|
||||
#undef KEY_BS
|
||||
#undef KEY_TAB
|
||||
#undef KEY_Q
|
||||
#undef KEY_W
|
||||
#undef KEY_E
|
||||
#undef KEY_R
|
||||
#undef KEY_T
|
||||
#undef KEY_Y
|
||||
#undef KEY_U
|
||||
#undef KEY_I
|
||||
#undef KEY_O
|
||||
#undef KEY_P
|
||||
#undef KEY_CAPS
|
||||
#undef KEY_A
|
||||
#undef KEY_S
|
||||
#undef KEY_D
|
||||
#undef KEY_F
|
||||
#undef KEY_G
|
||||
#undef KEY_H
|
||||
#undef KEY_J
|
||||
#undef KEY_K
|
||||
#undef KEY_L
|
||||
#undef KEY_ENTER
|
||||
#undef KEY_LSHIFT
|
||||
#undef KEY_Z
|
||||
#undef KEY_X
|
||||
#undef KEY_C
|
||||
#undef KEY_V
|
||||
#undef KEY_B
|
||||
#undef KEY_N
|
||||
#undef KEY_M
|
||||
#undef KEY_RSHIFT
|
||||
#undef KEY_UP
|
||||
#undef KEY_LCTRL
|
||||
#undef KEY_LALT
|
||||
#undef KEY_SPACE
|
||||
#undef KEY_RALT
|
||||
#undef KEY_RCTRL
|
||||
#undef KEY_LEFT
|
||||
#undef KEY_DOWN
|
||||
#undef KEY_RIGHT
|
||||
#undef KEY_INS
|
||||
#undef KEY_HOME
|
||||
#undef KEY_PGUP
|
||||
#undef KEY_DEL
|
||||
#undef KEY_END
|
||||
#undef KEY_PGDN
|
||||
#undef KEY_LMETA
|
||||
#undef KEY_RMETA
|
||||
#undef KEY_MENU
|
||||
#undef KEY_PRINT
|
||||
#undef KEY_PAUSE
|
||||
#undef KEY_SCROLL
|
||||
#undef KEY_NUMLOCK
|
||||
#undef KEY_MINUS
|
||||
#undef KEY_EQUAL
|
||||
#undef KEY_LSQUARE
|
||||
#undef KEY_RSQUARE
|
||||
#undef KEY_SEMICOLON
|
||||
#undef KEY_QUOTE
|
||||
#undef KEY_HASH
|
||||
#undef KEY_BAR
|
||||
#undef KEY_COMMA
|
||||
#undef KEY_DOT
|
||||
#undef KEY_SLASH
|
||||
#undef KEY_F1
|
||||
#undef KEY_F2
|
||||
#undef KEY_F3
|
||||
#undef KEY_F4
|
||||
#undef KEY_F5
|
||||
#undef KEY_F6
|
||||
#undef KEY_F7
|
||||
#undef KEY_F8
|
||||
#undef KEY_F9
|
||||
#undef KEY_F10
|
||||
#undef KEY_F11
|
||||
#undef KEY_F12
|
||||
#undef KEY_PAD1
|
||||
#undef KEY_PAD2
|
||||
#undef KEY_PAD3
|
||||
#undef KEY_PAD4
|
||||
#undef KEY_PAD5
|
||||
#undef KEY_PAD6
|
||||
#undef KEY_PAD7
|
||||
#undef KEY_PAD8
|
||||
#undef KEY_PAD9
|
||||
#undef KEY_PAD0
|
||||
#undef KEY_PADADD
|
||||
#undef KEY_PADSUB
|
||||
#undef KEY_PADMUL
|
||||
#undef KEY_PADDIV
|
||||
#undef KEY_PADDOT
|
||||
#undef KEY_PADENTER
|
||||
#undef MOUSE_L
|
||||
#undef MOUSE_M
|
||||
#undef MOUSE_R
|
||||
#undef GAMEPAD_CONNECTED
|
||||
#undef GAMEPAD_A
|
||||
#undef GAMEPAD_B
|
||||
#undef GAMEPAD_X
|
||||
#undef GAMEPAD_Y
|
||||
#undef GAMEPAD_UP
|
||||
#undef GAMEPAD_DOWN
|
||||
#undef GAMEPAD_LEFT
|
||||
#undef GAMEPAD_RIGHT
|
||||
#undef GAMEPAD_MENU
|
||||
#undef GAMEPAD_START
|
||||
#undef GAMEPAD_LB
|
||||
#undef GAMEPAD_RB
|
||||
#undef GAMEPAD_LTHUMB
|
||||
#undef GAMEPAD_RTHUMB
|
||||
#undef WINDOW_BLUR
|
||||
#undef WINDOW_FOCUS
|
||||
#undef WINDOW_CLOSE
|
||||
#undef WINDOW_MINIMIZE
|
||||
#undef WINDOW_MAXIMIZE
|
||||
#undef WINDOW_FULLSCREEN
|
||||
#undef WINDOW_WINDOWED
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPADY
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPADY
|
||||
#undef GAMEPAD_LT
|
||||
#undef GAMEPAD_RT
|
||||
#undef GAMEPAD_BATTERY
|
||||
#undef MOUSE
|
||||
#undef MOUSE
|
||||
#undef MOUSE_Y
|
||||
#undef MOUSE_W
|
||||
#undef TOUCH_X1
|
||||
#undef TOUCH_Y1
|
||||
#undef TOUCH_X2
|
||||
#undef TOUCH_Y2
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZEY
|
||||
#undef WINDOW_ORIENTATION
|
||||
#undef WINDOW_BATTERY
|
||||
#undef GAMEPAD_GUID
|
||||
#undef GAMEPAD_NAME
|
||||
#endif
|
||||
|
||||
#endif //SFW_3RD_IMPL
|
||||
|
||||
#endif // #ifndef __APPLE__
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/core/ucaps.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.cpp}}
|
||||
//--STRIP
|
||||
//#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/error/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "thread.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/sfw_time.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.cpp}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/core/old/directory.cpp}}
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.cpp}}
|
||||
//--STRIP
|
||||
//#include "pool_allocator.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "ucaps.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/basis.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.cpp}}
|
||||
//--STRIP
|
||||
//#include "face3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/plane.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//#include "core/rect2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "file_access.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "dir_access.h"
|
||||
//#include "3rd_tinydir.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//System includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//Win Only
|
||||
//#include <avrt.h>
|
||||
//#include <direct.h>
|
||||
//#include <knownfolders.h>
|
||||
//#include <process.h>
|
||||
//#include <regstr.h>
|
||||
//#include <shlobj.h>
|
||||
//#include <wchar.h>
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.cpp}}
|
||||
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object_rc.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.cpp}}
|
||||
//--STRIP
|
||||
//#include "ref_ptr.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.cpp}}
|
||||
//--STRIP
|
||||
//#include "core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.cpp}}
|
||||
//--STRIP
|
||||
//#include "dictionary.h"
|
||||
//#include "core/ordered_hash_map.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/variant.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.cpp}}
|
||||
//--STRIP
|
||||
//#include "array.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.cpp}}
|
||||
//--STRIP
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant_op.cpp}}
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/render_core/font_data_bm_mini.inc.h}}
|
||||
{{FILE:sfw/render_core/font_data_tables.inc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/application.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_event.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/shortcut.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.cpp}}
|
||||
//--STRIP
|
||||
//#include "font.h"
|
||||
//#include "app_window.h"
|
||||
//#include "3rd_glad.h"
|
||||
//#include "3rd_stb_truetype.h"
|
||||
//#include "font_data_bm_mini.inc.h"
|
||||
//#include "font_data_tables.inc.h"
|
||||
//#include "render_core/image.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/texture.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh_utils.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.cpp}}
|
||||
//--STRIP
|
||||
//#include "shortcut.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.cpp}}
|
||||
//--STRIP
|
||||
//{//{FILE:sfw/render_core/primitive_meshes.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.cpp}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/image.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/hash_map.h"
|
||||
//#include "math.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "3rd_stb_image.h"
|
||||
//#include "3rd_stb_image_write.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "3rd_glfw3.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.cpp}}
|
||||
//--STRIP
|
||||
//#include "keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_map.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/scene.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.cpp}}
|
||||
//--STRIP
|
||||
//#include "input.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glfw3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.cpp}}
|
767
tools/merger/sfw_render_core.h.inl
Normal file
767
tools/merger/sfw_render_core.h.inl
Normal file
@ -0,0 +1,767 @@
|
||||
#ifndef SFW_H
|
||||
#define SFW_H
|
||||
|
||||
{{FILEINLINE:sfw/core/version.h}}
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
|
||||
// MODULES:
|
||||
// CORE + OBJECT + RENDER CORE
|
||||
|
||||
// LICENSES:
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#ifndef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/int_types.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_defs.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_list.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/typedefs.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/math_defs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/marshalls.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#if !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include <thread>
|
||||
//#endif
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_macros.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rw_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/spin_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread_safe.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Simple almost dependencyless containers
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/cowdata.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sort_array.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_set.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vmap.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vset.h}}
|
||||
//--STRIP
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/list.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ring_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "spin_lock.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/paged_allocator.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.h}}
|
||||
|
||||
//--STRIP
|
||||
//Strings they need vector.h, and cowdata.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_range.inc}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/char_range.inc"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_utils.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "char_utils.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.h}}
|
||||
|
||||
//--STRIP
|
||||
//Needs ustring.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "pool_allocator.h"
|
||||
//#include "rw_lock.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/tight_local_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/local_vector.h}}
|
||||
|
||||
//--STRIP
|
||||
//Math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h" // also includes math_funcs and ustring
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h" // also includes math_funcs and ustring
|
||||
//#include "core/rect2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.h}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/rect2.h" // also includes vector2, math_funcs, and ustring
|
||||
//#include "core/rect2i.h" // also includes vector2i, math_funcs, and ustring
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.h}}
|
||||
|
||||
//--STRIP
|
||||
//hashfuncs.h Needs most math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hashfuncs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Containers that need hashfuncs.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pair.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/og_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/og_hash_map.h"
|
||||
//#include "core/pair.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ordered_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "paged_allocator.h"
|
||||
//#include "pair.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_set.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//also needs vector
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "int_types.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.h}}
|
||||
//--STRIP
|
||||
//#include "inet_address.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include <stdio.h>
|
||||
//Win Only
|
||||
//#include "core/local_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.h}}
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.h}}
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//Dependencyless stuff
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_id.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.h}}
|
||||
|
||||
//--STRIP
|
||||
//Variants
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/array.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/face3.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/projection.h"
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "object/array.h"
|
||||
//#include "object/dictionary.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//#include "object/object_id.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.h}}
|
||||
|
||||
//--STRIP
|
||||
//Stuff that needs Variant
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/rw_lock.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object_id.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/dictionary.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_rc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.h}}
|
||||
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/color.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.h}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/render_core/primitive_meshes.h}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.h}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.h}}
|
||||
//--STRIP
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/input_event.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//#include "core/rb_set.h"
|
||||
//#include "core/thread_safe.h"
|
||||
//#include "object/psignal.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "core/hash_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.h}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "core/color.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "font_material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.h}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/scene.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.h}}
|
||||
|
||||
// expose glfw/glad apis
|
||||
#if __EMSCRIPTEN__
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#define gladLoadGL(func) (glewExperimental = true, glewInit() == GLEW_OK) ///-
|
||||
#else
|
||||
#if defined(_WIN64) || defined(_WIN32) /*&& is(tcc)*/ // && ENABLE_DLL
|
||||
#ifdef GLAD_API_CALL
|
||||
#undef GLAD_API_CALL
|
||||
#endif
|
||||
#define GLAD_API_CALL extern
|
||||
//TODO Figure out why did this build, and why it now doesn't want to work in the amalgamated build
|
||||
// API ///-
|
||||
#endif
|
||||
|
||||
#ifndef GLAD_GL_H_
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#define ONLY_GLAD
|
||||
|
||||
#include "sfw_3rd.m"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
675
tools/merger/sfw_render_immediate.cpp.inl
Normal file
675
tools/merger/sfw_render_immediate.cpp.inl
Normal file
@ -0,0 +1,675 @@
|
||||
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#include <wchar.h>
|
||||
#include <cstdint>
|
||||
#include <memory.h>
|
||||
|
||||
#if !defined(_WIN64) && !defined(_WIN32)
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef SFW_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#include "sfw.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
#endif //__APPLE__
|
||||
|
||||
#endif //SFW_H
|
||||
|
||||
// On OSX sfw_3rd.m has to be compiled manually on Objective C Mode.
|
||||
#ifndef __APPLE__
|
||||
|
||||
#ifndef SFW_3RD_IMPL
|
||||
#define SFW_3RD_IMPL
|
||||
|
||||
#if defined(__linux__)
|
||||
//typedef XID Font;
|
||||
#define Font The_Font_I_dont_care
|
||||
#endif
|
||||
|
||||
// Note: On Windows we need to make sure that
|
||||
// GLFW includes it's needed windows headers first, as it has quite a bit of setup.
|
||||
// Also windows headers can define quite a bit of stuff like far and near macros
|
||||
// Wee need to make sure it's safe to undo those as soon as possible
|
||||
// This means that <windows.h> cannot be included in sfw.h if rendering is enabled.
|
||||
// Also since it pull in lots of defines it probably shouldn't anyway.
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
|
||||
#undef CursorShape
|
||||
|
||||
#if defined(__linux__)
|
||||
#undef Font
|
||||
#undef KEY_ESC
|
||||
#undef KEY_TICK
|
||||
#undef KEY_1
|
||||
#undef KEY_2
|
||||
#undef KEY_3
|
||||
#undef KEY_4
|
||||
#undef KEY_5
|
||||
#undef KEY_6
|
||||
#undef KEY_7
|
||||
#undef KEY_8
|
||||
#undef KEY_9
|
||||
#undef KEY_0
|
||||
#undef KEY_BS
|
||||
#undef KEY_TAB
|
||||
#undef KEY_Q
|
||||
#undef KEY_W
|
||||
#undef KEY_E
|
||||
#undef KEY_R
|
||||
#undef KEY_T
|
||||
#undef KEY_Y
|
||||
#undef KEY_U
|
||||
#undef KEY_I
|
||||
#undef KEY_O
|
||||
#undef KEY_P
|
||||
#undef KEY_CAPS
|
||||
#undef KEY_A
|
||||
#undef KEY_S
|
||||
#undef KEY_D
|
||||
#undef KEY_F
|
||||
#undef KEY_G
|
||||
#undef KEY_H
|
||||
#undef KEY_J
|
||||
#undef KEY_K
|
||||
#undef KEY_L
|
||||
#undef KEY_ENTER
|
||||
#undef KEY_LSHIFT
|
||||
#undef KEY_Z
|
||||
#undef KEY_X
|
||||
#undef KEY_C
|
||||
#undef KEY_V
|
||||
#undef KEY_B
|
||||
#undef KEY_N
|
||||
#undef KEY_M
|
||||
#undef KEY_RSHIFT
|
||||
#undef KEY_UP
|
||||
#undef KEY_LCTRL
|
||||
#undef KEY_LALT
|
||||
#undef KEY_SPACE
|
||||
#undef KEY_RALT
|
||||
#undef KEY_RCTRL
|
||||
#undef KEY_LEFT
|
||||
#undef KEY_DOWN
|
||||
#undef KEY_RIGHT
|
||||
#undef KEY_INS
|
||||
#undef KEY_HOME
|
||||
#undef KEY_PGUP
|
||||
#undef KEY_DEL
|
||||
#undef KEY_END
|
||||
#undef KEY_PGDN
|
||||
#undef KEY_LMETA
|
||||
#undef KEY_RMETA
|
||||
#undef KEY_MENU
|
||||
#undef KEY_PRINT
|
||||
#undef KEY_PAUSE
|
||||
#undef KEY_SCROLL
|
||||
#undef KEY_NUMLOCK
|
||||
#undef KEY_MINUS
|
||||
#undef KEY_EQUAL
|
||||
#undef KEY_LSQUARE
|
||||
#undef KEY_RSQUARE
|
||||
#undef KEY_SEMICOLON
|
||||
#undef KEY_QUOTE
|
||||
#undef KEY_HASH
|
||||
#undef KEY_BAR
|
||||
#undef KEY_COMMA
|
||||
#undef KEY_DOT
|
||||
#undef KEY_SLASH
|
||||
#undef KEY_F1
|
||||
#undef KEY_F2
|
||||
#undef KEY_F3
|
||||
#undef KEY_F4
|
||||
#undef KEY_F5
|
||||
#undef KEY_F6
|
||||
#undef KEY_F7
|
||||
#undef KEY_F8
|
||||
#undef KEY_F9
|
||||
#undef KEY_F10
|
||||
#undef KEY_F11
|
||||
#undef KEY_F12
|
||||
#undef KEY_PAD1
|
||||
#undef KEY_PAD2
|
||||
#undef KEY_PAD3
|
||||
#undef KEY_PAD4
|
||||
#undef KEY_PAD5
|
||||
#undef KEY_PAD6
|
||||
#undef KEY_PAD7
|
||||
#undef KEY_PAD8
|
||||
#undef KEY_PAD9
|
||||
#undef KEY_PAD0
|
||||
#undef KEY_PADADD
|
||||
#undef KEY_PADSUB
|
||||
#undef KEY_PADMUL
|
||||
#undef KEY_PADDIV
|
||||
#undef KEY_PADDOT
|
||||
#undef KEY_PADENTER
|
||||
#undef MOUSE_L
|
||||
#undef MOUSE_M
|
||||
#undef MOUSE_R
|
||||
#undef GAMEPAD_CONNECTED
|
||||
#undef GAMEPAD_A
|
||||
#undef GAMEPAD_B
|
||||
#undef GAMEPAD_X
|
||||
#undef GAMEPAD_Y
|
||||
#undef GAMEPAD_UP
|
||||
#undef GAMEPAD_DOWN
|
||||
#undef GAMEPAD_LEFT
|
||||
#undef GAMEPAD_RIGHT
|
||||
#undef GAMEPAD_MENU
|
||||
#undef GAMEPAD_START
|
||||
#undef GAMEPAD_LB
|
||||
#undef GAMEPAD_RB
|
||||
#undef GAMEPAD_LTHUMB
|
||||
#undef GAMEPAD_RTHUMB
|
||||
#undef WINDOW_BLUR
|
||||
#undef WINDOW_FOCUS
|
||||
#undef WINDOW_CLOSE
|
||||
#undef WINDOW_MINIMIZE
|
||||
#undef WINDOW_MAXIMIZE
|
||||
#undef WINDOW_FULLSCREEN
|
||||
#undef WINDOW_WINDOWED
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPADY
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPADY
|
||||
#undef GAMEPAD_LT
|
||||
#undef GAMEPAD_RT
|
||||
#undef GAMEPAD_BATTERY
|
||||
#undef MOUSE
|
||||
#undef MOUSE
|
||||
#undef MOUSE_Y
|
||||
#undef MOUSE_W
|
||||
#undef TOUCH_X1
|
||||
#undef TOUCH_Y1
|
||||
#undef TOUCH_X2
|
||||
#undef TOUCH_Y2
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZEY
|
||||
#undef WINDOW_ORIENTATION
|
||||
#undef WINDOW_BATTERY
|
||||
#undef GAMEPAD_GUID
|
||||
#undef GAMEPAD_NAME
|
||||
#endif
|
||||
|
||||
#endif //SFW_3RD_IMPL
|
||||
|
||||
#endif // #ifndef __APPLE__
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/core/ucaps.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.cpp}}
|
||||
//--STRIP
|
||||
//#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/error/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "thread.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/sfw_time.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.cpp}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/core/old/directory.cpp}}
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.cpp}}
|
||||
//--STRIP
|
||||
//#include "pool_allocator.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "ucaps.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/basis.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.cpp}}
|
||||
//--STRIP
|
||||
//#include "face3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/plane.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//#include "core/rect2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "file_access.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "dir_access.h"
|
||||
//#include "3rd_tinydir.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//System includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//Win Only
|
||||
//#include <avrt.h>
|
||||
//#include <direct.h>
|
||||
//#include <knownfolders.h>
|
||||
//#include <process.h>
|
||||
//#include <regstr.h>
|
||||
//#include <shlobj.h>
|
||||
//#include <wchar.h>
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.cpp}}
|
||||
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object_rc.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.cpp}}
|
||||
//--STRIP
|
||||
//#include "ref_ptr.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.cpp}}
|
||||
//--STRIP
|
||||
//#include "core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.cpp}}
|
||||
//--STRIP
|
||||
//#include "dictionary.h"
|
||||
//#include "core/ordered_hash_map.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/variant.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.cpp}}
|
||||
//--STRIP
|
||||
//#include "array.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.cpp}}
|
||||
//--STRIP
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant_op.cpp}}
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/render_core/font_data_bm_mini.inc.h}}
|
||||
{{FILE:sfw/render_core/font_data_tables.inc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/application.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_event.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/shortcut.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.cpp}}
|
||||
//--STRIP
|
||||
//#include "font.h"
|
||||
//#include "app_window.h"
|
||||
//#include "3rd_glad.h"
|
||||
//#include "3rd_stb_truetype.h"
|
||||
//#include "font_data_bm_mini.inc.h"
|
||||
//#include "font_data_tables.inc.h"
|
||||
//#include "render_core/image.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/texture.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh_utils.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.cpp}}
|
||||
//--STRIP
|
||||
//#include "shortcut.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.cpp}}
|
||||
//--STRIP
|
||||
//{//{FILE:sfw/render_core/primitive_meshes.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.cpp}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/image.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/hash_map.h"
|
||||
//#include "math.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "3rd_stb_image.h"
|
||||
//#include "3rd_stb_image_write.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "3rd_glfw3.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.cpp}}
|
||||
//--STRIP
|
||||
//#include "keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_map.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/scene.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.cpp}}
|
||||
//--STRIP
|
||||
//#include "input.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glfw3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.cpp}}
|
||||
|
||||
//=================== RENDER IMMEDIATE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "renderer.h"
|
||||
//#include "render_core/color_material_2d.h"
|
||||
//#include "render_core/font.h"
|
||||
//#include "render_core/font_material.h"
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/texture_material_2d.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_immediate/renderer.cpp}}
|
781
tools/merger/sfw_render_immediate.h.inl
Normal file
781
tools/merger/sfw_render_immediate.h.inl
Normal file
@ -0,0 +1,781 @@
|
||||
#ifndef SFW_H
|
||||
#define SFW_H
|
||||
|
||||
{{FILEINLINE:sfw/core/version.h}}
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
|
||||
// MODULES:
|
||||
// CORE + OBJECT + RENDER CORE + RENDER IMMEDIATE
|
||||
|
||||
// LICENSES:
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#ifndef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/int_types.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_defs.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_list.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/typedefs.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/math_defs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/marshalls.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#if !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include <thread>
|
||||
//#endif
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_macros.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rw_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/spin_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread_safe.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Simple almost dependencyless containers
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/cowdata.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sort_array.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_set.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vmap.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vset.h}}
|
||||
//--STRIP
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/list.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ring_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "spin_lock.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/paged_allocator.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.h}}
|
||||
|
||||
//--STRIP
|
||||
//Strings they need vector.h, and cowdata.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_range.inc}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/char_range.inc"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_utils.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "char_utils.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.h}}
|
||||
|
||||
//--STRIP
|
||||
//Needs ustring.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "pool_allocator.h"
|
||||
//#include "rw_lock.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/tight_local_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/local_vector.h}}
|
||||
|
||||
//--STRIP
|
||||
//Math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h" // also includes math_funcs and ustring
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h" // also includes math_funcs and ustring
|
||||
//#include "core/rect2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.h}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/rect2.h" // also includes vector2, math_funcs, and ustring
|
||||
//#include "core/rect2i.h" // also includes vector2i, math_funcs, and ustring
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.h}}
|
||||
|
||||
//--STRIP
|
||||
//hashfuncs.h Needs most math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hashfuncs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Containers that need hashfuncs.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pair.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/og_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/og_hash_map.h"
|
||||
//#include "core/pair.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ordered_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "paged_allocator.h"
|
||||
//#include "pair.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_set.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//also needs vector
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "int_types.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.h}}
|
||||
//--STRIP
|
||||
//#include "inet_address.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include <stdio.h>
|
||||
//Win Only
|
||||
//#include "core/local_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.h}}
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.h}}
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//Dependencyless stuff
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_id.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.h}}
|
||||
|
||||
//--STRIP
|
||||
//Variants
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/array.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/face3.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/projection.h"
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "object/array.h"
|
||||
//#include "object/dictionary.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//#include "object/object_id.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.h}}
|
||||
|
||||
//--STRIP
|
||||
//Stuff that needs Variant
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/rw_lock.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object_id.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/dictionary.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_rc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.h}}
|
||||
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/color.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.h}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/render_core/primitive_meshes.h}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.h}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.h}}
|
||||
//--STRIP
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/input_event.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//#include "core/rb_set.h"
|
||||
//#include "core/thread_safe.h"
|
||||
//#include "object/psignal.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "core/hash_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.h}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "core/color.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "font_material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.h}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/scene.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.h}}
|
||||
|
||||
|
||||
//=================== RENDER IMMEDIATE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_immediate/renderer.h}}
|
||||
|
||||
// expose glfw/glad apis
|
||||
#if __EMSCRIPTEN__
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#define gladLoadGL(func) (glewExperimental = true, glewInit() == GLEW_OK) ///-
|
||||
#else
|
||||
#if defined(_WIN64) || defined(_WIN32) /*&& is(tcc)*/ // && ENABLE_DLL
|
||||
#ifdef GLAD_API_CALL
|
||||
#undef GLAD_API_CALL
|
||||
#endif
|
||||
#define GLAD_API_CALL extern
|
||||
//TODO Figure out why did this build, and why it now doesn't want to work in the amalgamated build
|
||||
// API ///-
|
||||
#endif
|
||||
|
||||
#ifndef GLAD_GL_H_
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#define ONLY_GLAD
|
||||
|
||||
#include "sfw_3rd.m"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
710
tools/merger/sfw_render_objects.cpp.inl
Normal file
710
tools/merger/sfw_render_objects.cpp.inl
Normal file
@ -0,0 +1,710 @@
|
||||
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring>
|
||||
#include <time.h>
|
||||
#include <ctime>
|
||||
#include <wchar.h>
|
||||
#include <cstdint>
|
||||
#include <memory.h>
|
||||
|
||||
#if !defined(_WIN64) && !defined(_WIN32)
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef SFW_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#include "sfw.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
#endif //__APPLE__
|
||||
|
||||
#endif //SFW_H
|
||||
|
||||
// On OSX sfw_3rd.m has to be compiled manually on Objective C Mode.
|
||||
#ifndef __APPLE__
|
||||
|
||||
#ifndef SFW_3RD_IMPL
|
||||
#define SFW_3RD_IMPL
|
||||
|
||||
#if defined(__linux__)
|
||||
//typedef XID Font;
|
||||
#define Font The_Font_I_dont_care
|
||||
#endif
|
||||
|
||||
// Note: On Windows we need to make sure that
|
||||
// GLFW includes it's needed windows headers first, as it has quite a bit of setup.
|
||||
// Also windows headers can define quite a bit of stuff like far and near macros
|
||||
// Wee need to make sure it's safe to undo those as soon as possible
|
||||
// This means that <windows.h> cannot be included in sfw.h if rendering is enabled.
|
||||
// Also since it pull in lots of defines it probably shouldn't anyway.
|
||||
#undef ONLY_GLAD
|
||||
#include "sfw_3rd.m"
|
||||
|
||||
#undef CursorShape
|
||||
|
||||
#if defined(__linux__)
|
||||
#undef Font
|
||||
#undef KEY_ESC
|
||||
#undef KEY_TICK
|
||||
#undef KEY_1
|
||||
#undef KEY_2
|
||||
#undef KEY_3
|
||||
#undef KEY_4
|
||||
#undef KEY_5
|
||||
#undef KEY_6
|
||||
#undef KEY_7
|
||||
#undef KEY_8
|
||||
#undef KEY_9
|
||||
#undef KEY_0
|
||||
#undef KEY_BS
|
||||
#undef KEY_TAB
|
||||
#undef KEY_Q
|
||||
#undef KEY_W
|
||||
#undef KEY_E
|
||||
#undef KEY_R
|
||||
#undef KEY_T
|
||||
#undef KEY_Y
|
||||
#undef KEY_U
|
||||
#undef KEY_I
|
||||
#undef KEY_O
|
||||
#undef KEY_P
|
||||
#undef KEY_CAPS
|
||||
#undef KEY_A
|
||||
#undef KEY_S
|
||||
#undef KEY_D
|
||||
#undef KEY_F
|
||||
#undef KEY_G
|
||||
#undef KEY_H
|
||||
#undef KEY_J
|
||||
#undef KEY_K
|
||||
#undef KEY_L
|
||||
#undef KEY_ENTER
|
||||
#undef KEY_LSHIFT
|
||||
#undef KEY_Z
|
||||
#undef KEY_X
|
||||
#undef KEY_C
|
||||
#undef KEY_V
|
||||
#undef KEY_B
|
||||
#undef KEY_N
|
||||
#undef KEY_M
|
||||
#undef KEY_RSHIFT
|
||||
#undef KEY_UP
|
||||
#undef KEY_LCTRL
|
||||
#undef KEY_LALT
|
||||
#undef KEY_SPACE
|
||||
#undef KEY_RALT
|
||||
#undef KEY_RCTRL
|
||||
#undef KEY_LEFT
|
||||
#undef KEY_DOWN
|
||||
#undef KEY_RIGHT
|
||||
#undef KEY_INS
|
||||
#undef KEY_HOME
|
||||
#undef KEY_PGUP
|
||||
#undef KEY_DEL
|
||||
#undef KEY_END
|
||||
#undef KEY_PGDN
|
||||
#undef KEY_LMETA
|
||||
#undef KEY_RMETA
|
||||
#undef KEY_MENU
|
||||
#undef KEY_PRINT
|
||||
#undef KEY_PAUSE
|
||||
#undef KEY_SCROLL
|
||||
#undef KEY_NUMLOCK
|
||||
#undef KEY_MINUS
|
||||
#undef KEY_EQUAL
|
||||
#undef KEY_LSQUARE
|
||||
#undef KEY_RSQUARE
|
||||
#undef KEY_SEMICOLON
|
||||
#undef KEY_QUOTE
|
||||
#undef KEY_HASH
|
||||
#undef KEY_BAR
|
||||
#undef KEY_COMMA
|
||||
#undef KEY_DOT
|
||||
#undef KEY_SLASH
|
||||
#undef KEY_F1
|
||||
#undef KEY_F2
|
||||
#undef KEY_F3
|
||||
#undef KEY_F4
|
||||
#undef KEY_F5
|
||||
#undef KEY_F6
|
||||
#undef KEY_F7
|
||||
#undef KEY_F8
|
||||
#undef KEY_F9
|
||||
#undef KEY_F10
|
||||
#undef KEY_F11
|
||||
#undef KEY_F12
|
||||
#undef KEY_PAD1
|
||||
#undef KEY_PAD2
|
||||
#undef KEY_PAD3
|
||||
#undef KEY_PAD4
|
||||
#undef KEY_PAD5
|
||||
#undef KEY_PAD6
|
||||
#undef KEY_PAD7
|
||||
#undef KEY_PAD8
|
||||
#undef KEY_PAD9
|
||||
#undef KEY_PAD0
|
||||
#undef KEY_PADADD
|
||||
#undef KEY_PADSUB
|
||||
#undef KEY_PADMUL
|
||||
#undef KEY_PADDIV
|
||||
#undef KEY_PADDOT
|
||||
#undef KEY_PADENTER
|
||||
#undef MOUSE_L
|
||||
#undef MOUSE_M
|
||||
#undef MOUSE_R
|
||||
#undef GAMEPAD_CONNECTED
|
||||
#undef GAMEPAD_A
|
||||
#undef GAMEPAD_B
|
||||
#undef GAMEPAD_X
|
||||
#undef GAMEPAD_Y
|
||||
#undef GAMEPAD_UP
|
||||
#undef GAMEPAD_DOWN
|
||||
#undef GAMEPAD_LEFT
|
||||
#undef GAMEPAD_RIGHT
|
||||
#undef GAMEPAD_MENU
|
||||
#undef GAMEPAD_START
|
||||
#undef GAMEPAD_LB
|
||||
#undef GAMEPAD_RB
|
||||
#undef GAMEPAD_LTHUMB
|
||||
#undef GAMEPAD_RTHUMB
|
||||
#undef WINDOW_BLUR
|
||||
#undef WINDOW_FOCUS
|
||||
#undef WINDOW_CLOSE
|
||||
#undef WINDOW_MINIMIZE
|
||||
#undef WINDOW_MAXIMIZE
|
||||
#undef WINDOW_FULLSCREEN
|
||||
#undef WINDOW_WINDOWED
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPAD
|
||||
#undef GAMEPAD_LPADY
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPAD
|
||||
#undef GAMEPAD_RPADY
|
||||
#undef GAMEPAD_LT
|
||||
#undef GAMEPAD_RT
|
||||
#undef GAMEPAD_BATTERY
|
||||
#undef MOUSE
|
||||
#undef MOUSE
|
||||
#undef MOUSE_Y
|
||||
#undef MOUSE_W
|
||||
#undef TOUCH_X1
|
||||
#undef TOUCH_Y1
|
||||
#undef TOUCH_X2
|
||||
#undef TOUCH_Y2
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZE
|
||||
#undef WINDOW_RESIZEY
|
||||
#undef WINDOW_ORIENTATION
|
||||
#undef WINDOW_BATTERY
|
||||
#undef GAMEPAD_GUID
|
||||
#undef GAMEPAD_NAME
|
||||
#endif
|
||||
|
||||
#endif //SFW_3RD_IMPL
|
||||
|
||||
#endif // #ifndef __APPLE__
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/core/ucaps.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.cpp}}
|
||||
//--STRIP
|
||||
//#if defined(DEBUG_ENABLED) && !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/error/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "thread.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/sfw_time.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.cpp}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/core/old/directory.cpp}}
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.cpp}}
|
||||
//--STRIP
|
||||
//#include "pool_allocator.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "ucaps.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/basis.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.cpp}}
|
||||
//--STRIP
|
||||
//#include "face3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/plane.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//#include "core/rect2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h" // Includes rect2.h but Rect2 needs Transform2D
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/basis.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "file_access.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "dir_access.h"
|
||||
//#include "3rd_tinydir.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//System includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.cpp}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//Win Only
|
||||
//#include <avrt.h>
|
||||
//#include <direct.h>
|
||||
//#include <knownfolders.h>
|
||||
//#include <process.h>
|
||||
//#include <regstr.h>
|
||||
//#include <shlobj.h>
|
||||
//#include <wchar.h>
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.cpp}}
|
||||
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.cpp}}
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object_rc.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.cpp}}
|
||||
//--STRIP
|
||||
//#include "ref_ptr.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.cpp}}
|
||||
//--STRIP
|
||||
//#include "core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.cpp}}
|
||||
//--STRIP
|
||||
//#include "dictionary.h"
|
||||
//#include "core/ordered_hash_map.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/variant.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.cpp}}
|
||||
//--STRIP
|
||||
//#include "array.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.cpp}}
|
||||
//--STRIP
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.cpp}}
|
||||
//--STRIP
|
||||
//#include "variant.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/object_rc.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant_op.cpp}}
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
{{FILE:sfw/render_core/font_data_bm_mini.inc.h}}
|
||||
{{FILE:sfw/render_core/font_data_tables.inc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/texture.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/application.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "object/core_string_names.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_event.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/shortcut.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.cpp}}
|
||||
//--STRIP
|
||||
//#include "font.h"
|
||||
//#include "app_window.h"
|
||||
//#include "3rd_glad.h"
|
||||
//#include "3rd_stb_truetype.h"
|
||||
//#include "font_data_bm_mini.inc.h"
|
||||
//#include "font_data_tables.inc.h"
|
||||
//#include "render_core/image.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/texture.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/mesh_utils.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.cpp}}
|
||||
//--STRIP
|
||||
//#include "shortcut.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.cpp}}
|
||||
//--STRIP
|
||||
//{//{FILE:sfw/render_core/primitive_meshes.cpp}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.cpp}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.cpp}}
|
||||
//--STRIP
|
||||
//#includes own header
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.cpp}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/image.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/hash_map.h"
|
||||
//#include "math.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "3rd_stb_image.h"
|
||||
//#include "3rd_stb_image_write.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "3rd_glfw3.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.cpp}}
|
||||
//--STRIP
|
||||
//#include "keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.cpp}}
|
||||
//--STRIP
|
||||
//#include "input_map.h"
|
||||
//#include "render_core/input.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_core/scene.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.cpp}}
|
||||
//--STRIP
|
||||
//#include "input.h"
|
||||
//#include "core/logger.h"
|
||||
//#include "core/sfw_time.h"
|
||||
//#include "render_core/application.h"
|
||||
//#include "render_core/input_map.h"
|
||||
//#include "render_core/keyboard.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/app_window.h"
|
||||
//#include "render_core/3rd_glfw3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.cpp}}
|
||||
|
||||
//=================== RENDER OBJECTS SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "render_objects/camera_3d.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/camera_3d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/sprite.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/sprite.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/camera_2d.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/camera_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/mesh_instance_3d.h"
|
||||
//#include "render_objects/camera_3d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/mesh_instance_3d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/object_3d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/object_3d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/tile_map.h"
|
||||
//#include "render_objects/camera_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/tile_map.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/text_2d.h"
|
||||
//#include "render_core/font.h"
|
||||
//#include "render_core/font_material.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_objects/camera_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/text_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/object_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/object_2d.cpp}}
|
||||
//--STRIP
|
||||
//#include "render_objects/mesh_instance_2d.h"
|
||||
//#include "render_objects/camera_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/mesh_instance_2d.cpp}}
|
||||
|
835
tools/merger/sfw_render_objects.h.inl
Normal file
835
tools/merger/sfw_render_objects.h.inl
Normal file
@ -0,0 +1,835 @@
|
||||
#ifndef SFW_H
|
||||
#define SFW_H
|
||||
|
||||
{{FILEINLINE:sfw/core/version.h}}
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
|
||||
// MODULES:
|
||||
// CORE + OBJECT + RENDER CORE + RENDER OBJECTS
|
||||
|
||||
// LICENSES:
|
||||
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses_render_core.inl.h}}
|
||||
|
||||
#ifndef _REENTRANT
|
||||
#define _REENTRANT
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
//=================== CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/int_types.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_defs.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_list.h}}
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/logger.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/typedefs.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/math_defs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/marshalls.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_time.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/safe_refcount.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#if !defined(NO_THREADS)
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include <thread>
|
||||
//#endif
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/logger.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/error_macros.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/memory.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/mutex.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rw_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/spin_lock.h}}
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/thread_safe.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pcg.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/random_pcg.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/random_pcg.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/pcg.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/math_funcs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Simple almost dependencyless containers
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/cowdata.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sort_array.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rb_set.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vmap.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vset.h}}
|
||||
//--STRIP
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/list.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ring_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "spin_lock.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/paged_allocator.h}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_allocator.h}}
|
||||
|
||||
//--STRIP
|
||||
//Strings they need vector.h, and cowdata.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_range.inc}}
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/char_range.inc"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/char_utils.h}}
|
||||
//--STRIP
|
||||
//#include "cowdata.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "char_utils.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ustring.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/string_name.h}}
|
||||
|
||||
//--STRIP
|
||||
//Needs ustring.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "pool_allocator.h"
|
||||
//#include "rw_lock.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pool_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/tight_local_vector.h}}
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/sort_array.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/local_vector.h}}
|
||||
|
||||
//--STRIP
|
||||
//Math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/color.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/error_macros.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2.h" // also includes math_funcs and ustring
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h" // also includes math_funcs and ustring
|
||||
//#include "core/rect2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/rect2i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector3i.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4.h}}
|
||||
//--STRIP
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/vector4i.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/plane.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/aabb.h}}
|
||||
//--STRIP
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/quaternion.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector4.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/projection.h}}
|
||||
//--STRIP
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/basis.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/rect2.h" // also includes vector2, math_funcs, and ustring
|
||||
//#include "core/rect2i.h" // also includes vector2i, math_funcs, and ustring
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform_2d.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/face3.h}}
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/transform.h}}
|
||||
|
||||
//--STRIP
|
||||
//hashfuncs.h Needs most math classes
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "core/vector2.h"
|
||||
//#include "core/vector2i.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hashfuncs.h}}
|
||||
|
||||
//--STRIP
|
||||
//Containers that need hashfuncs.h
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/pair.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/list.h"
|
||||
//#include "core/error_macros.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/og_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/og_hash_map.h"
|
||||
//#include "core/pair.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/ordered_hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "paged_allocator.h"
|
||||
//#include "pair.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "list.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/hashfuncs.h"
|
||||
//#include "core/math_funcs.h"
|
||||
//#include "core/memory.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/hash_set.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//also needs vector
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/file_access.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/error_list.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/dir_access.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "int_types.h"
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/inet_address.h}}
|
||||
//--STRIP
|
||||
//#include "inet_address.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/socket.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/math_defs.h"
|
||||
//#include "core/memory.h"
|
||||
//#include "core/mutex.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include <stdio.h>
|
||||
//Win Only
|
||||
//#include "core/local_vector.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sub_process.h}}
|
||||
|
||||
//--STRIP
|
||||
//no includes
|
||||
//--STRIP
|
||||
{{FILE:sfw/core/sfw_core.h}}
|
||||
|
||||
//=================== OBJECT SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//Dependencyless stuff
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/ref_ptr.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_id.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/string_name.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/core_string_names.h}}
|
||||
|
||||
//--STRIP
|
||||
//Variants
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/array.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/list.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/array.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/dictionary.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/aabb.h"
|
||||
//#include "core/basis.h"
|
||||
//#include "core/color.h"
|
||||
//#include "core/face3.h"
|
||||
//#include "core/plane.h"
|
||||
//#include "core/pool_vector.h"
|
||||
//#include "core/projection.h"
|
||||
//#include "core/quaternion.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/vector3i.h"
|
||||
//#include "core/vector4.h"
|
||||
//#include "core/vector4i.h"
|
||||
//#include "object/array.h"
|
||||
//#include "object/dictionary.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//#include "object/object_id.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/variant.h}}
|
||||
|
||||
//--STRIP
|
||||
//Stuff that needs Variant
|
||||
//--STRIP
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/reference.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/psignal.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/hash_map.h"
|
||||
//#include "core/rw_lock.h"
|
||||
//#include "core/string_name.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "object/object_id.h"
|
||||
//#include "object/variant.h"
|
||||
//#include "object/dictionary.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/typedefs.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/object_rc.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "core/memory.h"
|
||||
//#include "core/safe_refcount.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/ref_ptr.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/reference.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "psignal.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/object/resource.h}}
|
||||
|
||||
|
||||
//=================== RENDER CORE SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/render_state.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/rect2.h"
|
||||
//#include "core/rect2i.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "core/vector2i.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/image.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/frame_buffer.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_core/image.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/color.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh.h}}
|
||||
//--STRIP
|
||||
//{//{//FILE:sfw/render_core/primitive_meshes.h}}
|
||||
//--STRIP
|
||||
//--STRIP
|
||||
//#include "render_core/mesh.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/mesh_utils.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/ustring.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/keyboard.h}}
|
||||
//--STRIP
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/typedefs.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_event.h}}
|
||||
//--STRIP
|
||||
//#include "object/resource.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shortcut.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/input_event.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input_map.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector2i.h"
|
||||
//#include "object/object.h"
|
||||
//#include "core/rb_map.h"
|
||||
//#include "core/rb_set.h"
|
||||
//#include "core/thread_safe.h"
|
||||
//#include "object/psignal.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/input.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "core/hash_map.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/shader.h}}
|
||||
//--STRIP
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/shader.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/color_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/texture_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "core/color.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/colored_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font_material.h}}
|
||||
//--STRIP
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/texture.h"
|
||||
//#include "render_core/render_state.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/transparent_texture_material.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "object/resource.h"
|
||||
//#include "font_material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/font.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/input_event.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/scene.h}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/int_types.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/app_window.h}}
|
||||
//--STRIP
|
||||
//#include "core/int_types.h"
|
||||
//#include "object/object.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "render_core/scene.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_core/application.h}}
|
||||
|
||||
//=================== RENDER OBJECTS SECTION ===================
|
||||
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/object_2d.h}}
|
||||
//--STRIP
|
||||
//#include "object/object.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/object_3d.h}}
|
||||
|
||||
//--STRIP
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "render_objects/object_2d.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "core/vector2.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/camera_2d.h}}
|
||||
//--STRIP
|
||||
//#include "object_2d.h"
|
||||
//#include "core/vector.h"
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/mesh_instance_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_objects/object_2d.h"
|
||||
//#include "core/transform_2d.h"
|
||||
//#include "render_objects/mesh_instance_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/sprite.h}}
|
||||
//--STRIP
|
||||
//#include "core/color.h"
|
||||
//#include "core/ustring.h"
|
||||
//#include "core/vector2.h"
|
||||
//#include "object/reference.h"
|
||||
//#include "object_2d.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/text_2d.h}}
|
||||
//--STRIP
|
||||
//#include "render_objects/object_2d.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "render_core/material.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/tile_map.h}}
|
||||
|
||||
|
||||
//--STRIP
|
||||
//#include "render_objects/object_3d.h"
|
||||
//#include "render_core/3rd_glad.h"
|
||||
//#include "core/projection.h"
|
||||
//#include "core/transform.h"
|
||||
//#include "core/vector3.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/camera_3d.h}}
|
||||
//--STRIP
|
||||
//#include "core/vector.h"
|
||||
//#include "render_objects/object_3d.h"
|
||||
//#include "render_core/material.h"
|
||||
//#include "render_core/mesh.h"
|
||||
//#include "core/transform.h"
|
||||
//--STRIP
|
||||
{{FILE:sfw/render_objects/mesh_instance_3d.h}}
|
||||
|
||||
// expose glfw/glad apis
|
||||
#if __EMSCRIPTEN__
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <emscripten.h>
|
||||
#include <emscripten/html5.h>
|
||||
#define gladLoadGL(func) (glewExperimental = true, glewInit() == GLEW_OK) ///-
|
||||
#else
|
||||
#if defined(_WIN64) || defined(_WIN32) /*&& is(tcc)*/ // && ENABLE_DLL
|
||||
#ifdef GLAD_API_CALL
|
||||
#undef GLAD_API_CALL
|
||||
#endif
|
||||
#define GLAD_API_CALL extern
|
||||
//TODO Figure out why did this build, and why it now doesn't want to work in the amalgamated build
|
||||
// API ///-
|
||||
#endif
|
||||
|
||||
#ifndef GLAD_GL_H_
|
||||
|
||||
#ifdef __APPLE__
|
||||
#ifndef _APPLE_NO_IMPL_
|
||||
#define _APPLE_NO_IMPL_
|
||||
#endif //_APPLE_NO_IMPL_
|
||||
#endif //__APPLE__
|
||||
|
||||
#define ONLY_GLAD
|
||||
|
||||
#include "sfw_3rd.m"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user