lay progress
This commit is contained in:
parent
f7b450d6be
commit
280f92e096
@ -1,3 +0,0 @@
|
|||||||
#include "app.h"
|
|
||||||
|
|
||||||
#include "app_core.c"
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef APP_H
|
|
||||||
#define APP_H
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../ttf/ttf.h"
|
|
||||||
#include "../gpu/gpu.h"
|
|
||||||
#include "../sprite/sprite.h"
|
|
||||||
#include "../watch/watch.h"
|
|
||||||
#include "../draw/draw.h"
|
|
||||||
#include "../sound/sound.h"
|
|
||||||
#include "../font/font.h"
|
|
||||||
#include "../asset_cache/asset_cache.h"
|
|
||||||
#include "../mixer/mixer.h"
|
|
||||||
#include "../settings/settings.h"
|
|
||||||
#include "../net/net.h"
|
|
||||||
#include "../resource/resource.h"
|
|
||||||
#include "../playback/playback.h"
|
|
||||||
#include "../pp/pp.h"
|
|
||||||
|
|
||||||
#include "app_core.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
26
src/app/app.lay
Normal file
26
src/app/app.lay
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
@Layer app
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep ttf
|
||||||
|
@Dep gpu
|
||||||
|
@Dep sprite
|
||||||
|
@Dep watch
|
||||||
|
@Dep draw
|
||||||
|
@Dep sound
|
||||||
|
@Dep font
|
||||||
|
@Dep asset_cache
|
||||||
|
@Dep mixer
|
||||||
|
@Dep settings
|
||||||
|
@Dep net
|
||||||
|
@Dep resource
|
||||||
|
@Dep playback
|
||||||
|
@Dep pp
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi app_core
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "ase.h"
|
|
||||||
|
|
||||||
#include "ase_core.c"
|
|
||||||
void ASE_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
ASE_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
#ifndef ASE_H
|
|
||||||
#define ASE_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../bitbuff/bitbuff.h"
|
|
||||||
inline void ASE_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
BB_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "ase_core.h"
|
|
||||||
void ASE_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
12
src/ase/ase.lay
Normal file
12
src/ase/ase.lay
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
@Layer ase
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep bitbuff
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi ase_core
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "asset_cache.h"
|
|
||||||
|
|
||||||
#include "asset_cache_core.c"
|
|
||||||
void AC_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
AC_StartupDeps();
|
|
||||||
AC_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
#ifndef ASSET_CACHE_H
|
|
||||||
#define ASSET_CACHE_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
void AC_Main(void);
|
|
||||||
inline void AC_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "asset_cache_core.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
17
src/asset_cache/asset_cache.lay
Normal file
17
src/asset_cache/asset_cache.lay
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@Layer asset_cache
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi asset_cache_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init AC_StartupCore
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#include "base.h"
|
|
||||||
|
|
||||||
#include "base_arena.c"
|
|
||||||
#include "base_gstat.c"
|
|
||||||
#include "base_memory.c"
|
|
||||||
#include "base_buddy.c"
|
|
||||||
#include "base_math.c"
|
|
||||||
#include "base_rand.c"
|
|
||||||
#include "base_string.c"
|
|
||||||
#include "base_uid.c"
|
|
||||||
#include "base_uni.c"
|
|
||||||
#include "base_incbin.c"
|
|
||||||
#include "base_snc.c"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
#include "win32/base_win32_job.c"
|
|
||||||
#include "win32/base_win32_entry.c"
|
|
||||||
#else
|
|
||||||
# error Base layer platform backend not implemented
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void BaseMain(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
StartupBaseDeps();
|
|
||||||
StartupBaseJobs();
|
|
||||||
}
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
#ifndef BASE_H
|
|
||||||
#define BASE_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
inline void StartupBaseDeps(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "base_core.h"
|
|
||||||
|
|
||||||
#if LanguageIsC || LanguageIsCpp
|
|
||||||
//- Base cpu includes
|
|
||||||
#include "../prof/prof.h"
|
|
||||||
# include "base_intrinsics.h"
|
|
||||||
# include "base_memory.h"
|
|
||||||
# include "base_arena.h"
|
|
||||||
# include "base_snc.h"
|
|
||||||
# include "base_job.h"
|
|
||||||
# include "base_uid.h"
|
|
||||||
# include "base_string.h"
|
|
||||||
# include "base_uni.h"
|
|
||||||
# include "base_gstat.h"
|
|
||||||
# include "base_buddy.h"
|
|
||||||
# include "base_math.h"
|
|
||||||
# include "base_rand.h"
|
|
||||||
# include "base_util.h"
|
|
||||||
# include "base_incbin.h"
|
|
||||||
# include "base_entry.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "win32/base_win32_job.h"
|
|
||||||
# include "win32/base_win32_entry.h"
|
|
||||||
#endif
|
|
||||||
void BaseMain(void);
|
|
||||||
|
|
||||||
#elif LanguageIsGpu
|
|
||||||
//- Base gpu includes
|
|
||||||
# include "base_math_gpu.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
34
src/base/base.lay
Normal file
34
src/base/base.lay
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
@Layer base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi base_core
|
||||||
|
@GpuApi base_core
|
||||||
|
|
||||||
|
@CpuApi base_intrinsics
|
||||||
|
@CpuApi base_memory
|
||||||
|
@CpuApi base_arena
|
||||||
|
@CpuApi base_snc
|
||||||
|
@CpuApi base_job
|
||||||
|
@CpuApi base_uid
|
||||||
|
@CpuApi base_string
|
||||||
|
@CpuApi base_uni
|
||||||
|
@CpuApi base_gstat
|
||||||
|
@CpuApi base_buddy
|
||||||
|
@CpuApi base_math
|
||||||
|
@CpuApi base_rand
|
||||||
|
@CpuApi base_util
|
||||||
|
@CpuApi base_incbin
|
||||||
|
@CpuApi base_entry
|
||||||
|
|
||||||
|
@GpuApi base_math_gpu
|
||||||
|
|
||||||
|
//- Win32
|
||||||
|
@CpuApiWindows win32/base_win32_job
|
||||||
|
@CpuApiWindows win32/base_win32_entry
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init StartupBaseJobs
|
||||||
@ -1,7 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
set opts=-FC -GR- -EHa- -nologo -Zi
|
|
||||||
set code=%cd%
|
|
||||||
pushd build
|
|
||||||
cl %opts% %code%\build.c -Febuild
|
|
||||||
popd
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
code="$PWD"
|
|
||||||
opts=-g
|
|
||||||
cd build > /dev/null
|
|
||||||
g++ $opts $code/build.c -o build
|
|
||||||
cd $code > /dev/null
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "bitbuff.h"
|
|
||||||
|
|
||||||
#include "bitbuff_core.c"
|
|
||||||
void BB_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
BB_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef BITBUFF_H
|
|
||||||
#define BITBUFF_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void BB_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "bitbuff_core.h"
|
|
||||||
void BB_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
11
src/bitbuff/bitbuff.lay
Normal file
11
src/bitbuff/bitbuff.lay
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
@Layer bitbuff
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi bitbuff_core
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "collider.h"
|
|
||||||
|
|
||||||
#include "collider_core.c"
|
|
||||||
void CLD_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
CLD_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef COLLIDER_H
|
|
||||||
#define COLLIDER_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void CLD_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "collider_core.h"
|
|
||||||
void CLD_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
11
src/collider/collider.lay
Normal file
11
src/collider/collider.lay
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
@Layer collider
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi collider_core
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "draw.h"
|
|
||||||
|
|
||||||
#include "draw_core.c"
|
|
||||||
void D_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
D_StartupDeps();
|
|
||||||
D_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#ifndef DRAW_H
|
|
||||||
#define DRAW_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../gpu/gpu.h"
|
|
||||||
#include "../sprite/sprite.h"
|
|
||||||
#include "../font/font.h"
|
|
||||||
#include "../collider/collider.h"
|
|
||||||
inline void D_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
GPU_Main();
|
|
||||||
S_Main();
|
|
||||||
F_Main();
|
|
||||||
CLD_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "draw_core.h"
|
|
||||||
void D_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
20
src/draw/draw.lay
Normal file
20
src/draw/draw.lay
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
@Layer draw
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep gpu
|
||||||
|
@Dep sprite
|
||||||
|
@Dep font
|
||||||
|
@Dep collider
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi draw_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init D_StartupCore
|
||||||
@ -1,15 +0,0 @@
|
|||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include "dxc.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "win32/dxc_win32.cpp"
|
|
||||||
#else
|
|
||||||
# error Dxc core not implemented for this platform
|
|
||||||
#endif
|
|
||||||
void DXC_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
DXC_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef DXC_H
|
|
||||||
#define DXC_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void DXC_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "dxc_core.h"
|
|
||||||
void DXC_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
14
src/dxc/dxc.lay
Normal file
14
src/dxc/dxc.lay
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
@Layer dxc
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi dxc_core
|
||||||
|
|
||||||
|
//- Win32
|
||||||
|
@CpuApiWindows win32/dxc_win32
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "font.h"
|
|
||||||
|
|
||||||
#include "font_core.c"
|
|
||||||
void F_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
F_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#ifndef FONT_H
|
|
||||||
#define FONT_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../ttf/ttf.h"
|
|
||||||
#include "../gpu/gpu.h"
|
|
||||||
#include "../resource/resource.h"
|
|
||||||
#include "../asset_cache/asset_cache.h"
|
|
||||||
inline void F_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
TTF_Main();
|
|
||||||
GPU_Main();
|
|
||||||
RES_Main();
|
|
||||||
AC_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "font_core.h"
|
|
||||||
void F_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
src/font/font.lay
Normal file
15
src/font/font.lay
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@Layer font
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep ttf
|
||||||
|
@Dep gpu
|
||||||
|
@Dep resource
|
||||||
|
@Dep asset_cache
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi font_core
|
||||||
@ -1,15 +0,0 @@
|
|||||||
#include "gpu.h"
|
|
||||||
|
|
||||||
#include "../kernel/kernel.h"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dx12/gpu_dx12.c"
|
|
||||||
#else
|
|
||||||
# error Gpu layer not implemented for this platform
|
|
||||||
#endif
|
|
||||||
void GPU_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
GPU_StartupDeps();
|
|
||||||
GPU_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
#ifndef GPU_H
|
|
||||||
#define GPU_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../tar/tar.h"
|
|
||||||
#include "../ase/ase.h"
|
|
||||||
#include "../dxc/dxc.h"
|
|
||||||
#include "../inc/inc.h"
|
|
||||||
#include "../resource/resource.h"
|
|
||||||
#include "../watch/watch.h"
|
|
||||||
inline void GPU_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
TAR_Main();
|
|
||||||
ASE_Main();
|
|
||||||
DXC_Main();
|
|
||||||
INC_Main();
|
|
||||||
RES_Main();
|
|
||||||
W_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "gpu_core.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dx12/gpu_dx12.h"
|
|
||||||
#endif
|
|
||||||
void GPU_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
26
src/gpu/gpu.lay
Normal file
26
src/gpu/gpu.lay
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
@Layer gpu
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep tar
|
||||||
|
@Dep ase
|
||||||
|
@Dep dxc
|
||||||
|
@Dep inc
|
||||||
|
@Dep resource
|
||||||
|
@Dep watch
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi gpu_core
|
||||||
|
|
||||||
|
//- Dx12
|
||||||
|
@CpuApi dx12/gpu_dx12
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init GPU_StartupCore
|
||||||
@ -1,13 +0,0 @@
|
|||||||
#include "gtest.h"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dx12/gtest_dx12.c"
|
|
||||||
#else
|
|
||||||
# error Gpu backend not implemented
|
|
||||||
#endif
|
|
||||||
void GT_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
GT_StartupDeps();
|
|
||||||
GT_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
#ifndef GTEST_H
|
|
||||||
#define GTEST_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
inline void GT_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "gtest_core.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dx12/gtest_dx12.h"
|
|
||||||
#endif
|
|
||||||
void GT_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
20
src/gtest/gtest.lay
Normal file
20
src/gtest/gtest.lay
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
@Layer gtest
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi gtest_core
|
||||||
|
|
||||||
|
//- Dx12
|
||||||
|
@CpuApiWindows dx12/gtest_dx12
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init GT_StartupCore
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "inc.h"
|
|
||||||
|
|
||||||
#include "inc_core.c"
|
|
||||||
void INC_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
INC_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef INC_H
|
|
||||||
#define INC_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void INC_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "inc_core.h"
|
|
||||||
void INC_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
11
src/inc/inc.lay
Normal file
11
src/inc/inc.lay
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
@Layer inc
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi inc_core
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "json.h"
|
|
||||||
|
|
||||||
#include "json_core.c"
|
|
||||||
void JSON_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
JSON_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef JSON_H
|
|
||||||
#define JSON_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void JSON_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "json_core.h"
|
|
||||||
void JSON_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
11
src/json/json.lay
Normal file
11
src/json/json.lay
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
@Layer json
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi json_core
|
||||||
@ -1,14 +0,0 @@
|
|||||||
#ifndef KERNEL_H
|
|
||||||
#define KERNEL_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "kernel_core.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
12
src/kernel/kernel.lay
Normal file
12
src/kernel/kernel.lay
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
@Layer kernel
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi kernel_core
|
||||||
|
@GpuApi kernel_core
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "mixer.h"
|
|
||||||
|
|
||||||
#include "mixer_core.c"
|
|
||||||
void MIX_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
MIX_StartupDeps();
|
|
||||||
MIX_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef MIXER_H
|
|
||||||
#define MIXER_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../sound/sound.h"
|
|
||||||
inline void MIX_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
SND_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "mixer_core.h"
|
|
||||||
void MIX_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
18
src/mixer/mixer.lay
Normal file
18
src/mixer/mixer.lay
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
@Layer mixer
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep sound
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi mixer_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init MIX_StartupCore
|
||||||
@ -1,12 +0,0 @@
|
|||||||
#include "mp3.h"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "mmf/mp3_mmf.c"
|
|
||||||
#else
|
|
||||||
# error Mp3 core not implemented for this platform
|
|
||||||
#endif
|
|
||||||
void MP3_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
MP3_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
#ifndef MP3_H
|
|
||||||
#define MP3_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void MP3_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "mp3_core.h"
|
|
||||||
void MP3_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
14
src/mp3/mp3.lay
Normal file
14
src/mp3/mp3.lay
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
@Layer mp3
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi mp3_core
|
||||||
|
|
||||||
|
//- Mmf
|
||||||
|
@CpuApiWindows mp3_mmf
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "net.h"
|
|
||||||
|
|
||||||
#include "net_core.c"
|
|
||||||
void N_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
N_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef NET_H
|
|
||||||
#define NET_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../bitbuff/bitbuff.h"
|
|
||||||
inline void N_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
BB_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "net_core.h"
|
|
||||||
void N_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
13
src/net/net.lay
Normal file
13
src/net/net.lay
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@Layer net
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep bitbuff
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi net_core
|
||||||
@ -1,17 +0,0 @@
|
|||||||
#include "platform.h"
|
|
||||||
|
|
||||||
#include "platform_log.c"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "platform_win32.c"
|
|
||||||
#else
|
|
||||||
# error Platform core not implemented
|
|
||||||
#endif
|
|
||||||
void P_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
P_StartupDeps();
|
|
||||||
P_StartupCore();
|
|
||||||
/* FIXME: Logfile path */
|
|
||||||
P_StartupLog(Lit("log.log"));
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef PLATFORM_H
|
|
||||||
#define PLATFORM_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void P_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "platform_core.h"
|
|
||||||
#include "platform_log.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "platform_win32.h"
|
|
||||||
#endif
|
|
||||||
void P_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
21
src/platform/platform.lay
Normal file
21
src/platform/platform.lay
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
@Layer platform
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi platform_core
|
||||||
|
@CpuApi platform_log
|
||||||
|
|
||||||
|
//- Win32
|
||||||
|
@CpuApiWindows platform_win32
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init P_StartupCore
|
||||||
|
@Init P_StartupLog
|
||||||
@ -1,13 +0,0 @@
|
|||||||
#include "playback.h"
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "win32/playback_win32.c"
|
|
||||||
#else
|
|
||||||
# error Playback core not implemented for this platform
|
|
||||||
#endif
|
|
||||||
void PB_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
PB_StartupDeps();
|
|
||||||
PB_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
#ifndef PLAYBACK_H
|
|
||||||
#define PLAYBACK_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../mixer/mixer.h"
|
|
||||||
inline void PB_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
MIX_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "playback_core.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "win32/playback_win32.h"
|
|
||||||
#endif
|
|
||||||
void PB_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
21
src/playback/playback.lay
Normal file
21
src/playback/playback.lay
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
@Layer playback
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep mixer
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi playback_core
|
||||||
|
|
||||||
|
//- Wasapi
|
||||||
|
@CpuApiWindows wasapi/playback_wasapi
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init PB_StartupCore
|
||||||
15
src/pp/pp.c
15
src/pp/pp.c
@ -1,15 +0,0 @@
|
|||||||
#include "pp.h"
|
|
||||||
|
|
||||||
#include "pp_ent.c"
|
|
||||||
#include "pp_phys.c"
|
|
||||||
#include "pp_step.c"
|
|
||||||
#include "pp_space.c"
|
|
||||||
#include "pp_sim.c"
|
|
||||||
#include "pp_core.c"
|
|
||||||
void PpMain(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
StartupPpDeps();
|
|
||||||
StartupSim();
|
|
||||||
StartupUser();
|
|
||||||
}
|
|
||||||
43
src/pp/pp.h
43
src/pp/pp.h
@ -1,43 +0,0 @@
|
|||||||
#ifndef PP_H
|
|
||||||
#define PP_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../gtest/gtest.h"
|
|
||||||
#include "../sprite/sprite.h"
|
|
||||||
#include "../font/font.h"
|
|
||||||
#include "../collider/collider.h"
|
|
||||||
#include "../draw/draw.h"
|
|
||||||
#include "../net/net.h"
|
|
||||||
#include "../mixer/mixer.h"
|
|
||||||
#include "../bitbuff/bitbuff.h"
|
|
||||||
#include "../rendertest/rendertest.h"
|
|
||||||
inline void StartupPpDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
GT_Main();
|
|
||||||
S_Main();
|
|
||||||
F_Main();
|
|
||||||
CLD_Main();
|
|
||||||
D_Main();
|
|
||||||
N_Main();
|
|
||||||
MIX_Main();
|
|
||||||
BB_Main();
|
|
||||||
RT_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "pp_sim.h"
|
|
||||||
#include "pp_phys.h"
|
|
||||||
#include "pp_space.h"
|
|
||||||
#include "pp_ent.h"
|
|
||||||
#include "pp_step.h"
|
|
||||||
#include "pp_draw.h"
|
|
||||||
#include "pp_core.h"
|
|
||||||
void PpMain(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
32
src/pp/pp.lay
Normal file
32
src/pp/pp.lay
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
@Layer pp
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep gtest
|
||||||
|
@Dep sprite
|
||||||
|
@Dep font
|
||||||
|
@Dep collider
|
||||||
|
@Dep draw
|
||||||
|
@Dep net
|
||||||
|
@Dep mixer
|
||||||
|
@Dep bitbuff
|
||||||
|
@Dep rendertest
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi pp_sim
|
||||||
|
@CpuApi pp_phys
|
||||||
|
@CpuApi pp_space
|
||||||
|
@CpuApi pp_ent
|
||||||
|
@CpuApi pp_step
|
||||||
|
@CpuApi pp_draw
|
||||||
|
@CpuApi pp_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init StartupSim
|
||||||
|
@Init StartupUser
|
||||||
@ -1,3 +0,0 @@
|
|||||||
#include "prof.h"
|
|
||||||
|
|
||||||
#include "prof_tracy.cpp"
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
#ifndef PROF_H
|
|
||||||
#define PROF_H
|
|
||||||
|
|
||||||
#include "prof_tracy.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
6
src/prof/prof.lay
Normal file
6
src/prof/prof.lay
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@Lay prof
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi prof_tracy
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "rendertest.h"
|
|
||||||
|
|
||||||
#include "rendertest_core.c"
|
|
||||||
void RT_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
RT_StartupDeps();
|
|
||||||
RT_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#ifndef RENDERTEST_H
|
|
||||||
#define RENDERTEST_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../gpu/gpu.h"
|
|
||||||
#include "../sprite/sprite.h"
|
|
||||||
#include "../font/font.h"
|
|
||||||
#include "../collider/collider.h"
|
|
||||||
inline void RT_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
GPU_Main();
|
|
||||||
S_Main();
|
|
||||||
F_Main();
|
|
||||||
CLD_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "rendertest_core.h"
|
|
||||||
void RT_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
20
src/rendertest/rendertest.lay
Normal file
20
src/rendertest/rendertest.lay
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
@Layer rendertest
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep gpu
|
||||||
|
@Dep sprite
|
||||||
|
@Dep font
|
||||||
|
@Dep collider
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi rendertest_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init RT_StartupCore
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "resource.h"
|
|
||||||
|
|
||||||
#include "resource_core.c"
|
|
||||||
void RES_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
RES_StartupDeps();
|
|
||||||
RES_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
#ifndef RESOURCE_H
|
|
||||||
#define RESOURCE_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../tar/tar.h"
|
|
||||||
#if RESOURCES_EMBEDDED
|
|
||||||
# include "../inc/inc.h"
|
|
||||||
#endif
|
|
||||||
inline void RES_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
TAR_Main();
|
|
||||||
#if RESOURCES_EMBEDDED
|
|
||||||
INC_Main();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "resource_core.h"
|
|
||||||
void RES_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
19
src/resource/resource.lay
Normal file
19
src/resource/resource.lay
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
@Layer resource
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep tar
|
||||||
|
@Dep inc
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi resource_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init RES_StartupCore
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "settings.h"
|
|
||||||
|
|
||||||
#include "settings_core.c"
|
|
||||||
void SETTINGS_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
SETTINGS_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef SETTINGS_H
|
|
||||||
#define SETTINGS_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../json/json.h"
|
|
||||||
inline void SETTINGS_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
JSON_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "settings_core.h"
|
|
||||||
void SETTINGS_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
13
src/settings/settings.lay
Normal file
13
src/settings/settings.lay
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@Layer settings
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep json
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi settings_core
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "sound.h"
|
|
||||||
|
|
||||||
#include "sound_core.c"
|
|
||||||
void SND_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
SND_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#ifndef SOUND_H
|
|
||||||
#define SOUND_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../mp3/mp3.h"
|
|
||||||
#include "../resource/resource.h"
|
|
||||||
#include "../asset_cache/asset_cache.h"
|
|
||||||
inline void SND_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
MP3_Main();
|
|
||||||
RES_Main();
|
|
||||||
AC_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "sound_core.h"
|
|
||||||
void SND_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
15
src/sound/sound.lay
Normal file
15
src/sound/sound.lay
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@Layer sound
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep mp3
|
||||||
|
@Dep resource
|
||||||
|
@Dep asset_cache
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi sound_core
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "sprite.h"
|
|
||||||
|
|
||||||
#include "sprite_core.c"
|
|
||||||
void S_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
S_StartupDeps();
|
|
||||||
S_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
#ifndef SPRITE_H
|
|
||||||
#define SPRITE_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../gtest/gtest.h"
|
|
||||||
#include "../ase/ase.h"
|
|
||||||
#include "../resource/resource.h"
|
|
||||||
#include "../watch/watch.h"
|
|
||||||
inline void S_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
GT_Main();
|
|
||||||
ASE_Main();
|
|
||||||
RES_Main();
|
|
||||||
W_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "sprite_core.h"
|
|
||||||
void S_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
21
src/sprite/sprite.lay
Normal file
21
src/sprite/sprite.lay
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
@Layer sprite
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep gtest
|
||||||
|
@Dep ase
|
||||||
|
@Dep resource
|
||||||
|
@Dep watch
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi sprite_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init S_StartupCore
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include "tar.h"
|
|
||||||
|
|
||||||
#include "tar_core.c"
|
|
||||||
void TAR_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
TAR_StartupDeps();
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
#ifndef TAR_H
|
|
||||||
#define TAR_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
#include "../bitbuff/bitbuff.h"
|
|
||||||
inline void TAR_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
BB_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "tar_core.h"
|
|
||||||
void TAR_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
13
src/tar/tar.lay
Normal file
13
src/tar/tar.lay
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@Layer tar
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
@Dep bitbuff
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi tar_core
|
||||||
@ -1,16 +0,0 @@
|
|||||||
extern "C"
|
|
||||||
{
|
|
||||||
#include "ttf.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dwrite/ttf_dwrite.cpp"
|
|
||||||
#else
|
|
||||||
# error TTF not implemented for this platform
|
|
||||||
#endif
|
|
||||||
void TTF_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
TTF_StartupDeps();
|
|
||||||
TTF_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
#ifndef TTF_H
|
|
||||||
#define TTF_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
inline void TTF_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "ttf_core.h"
|
|
||||||
#if PlatformIsWindows
|
|
||||||
# include "dwrite/ttf_dwrite.h"
|
|
||||||
#endif
|
|
||||||
void TTF_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
41
src/ttf/ttf.lay
Normal file
41
src/ttf/ttf.lay
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
AddDep("../base/base.h");
|
||||||
|
AddDep("../gtest/gtest.h");
|
||||||
|
AddDep("../sprite/sprite.h");
|
||||||
|
AddDep("../font/font.h");
|
||||||
|
AddDep("../collider/collider.h");
|
||||||
|
AddDep("../draw/draw.h");
|
||||||
|
AddDep("../net/net.h");
|
||||||
|
AddDep("../mixer/mixer.h");
|
||||||
|
AddDep("../bitbuff/bitbuff.h");
|
||||||
|
AddDep("../rendertest/rendertest.h");
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Headers
|
||||||
|
|
||||||
|
AddHeader("pp_sim.h");
|
||||||
|
AddHeader("pp_phys.h");
|
||||||
|
AddHeader("pp_space.h");
|
||||||
|
AddHeader("pp_ent.h");
|
||||||
|
AddHeader("pp_step.h");
|
||||||
|
AddHeader("pp_draw.h");
|
||||||
|
AddHeader("pp_core.h");
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Sources
|
||||||
|
|
||||||
|
AddCSource("pp_ent.c");
|
||||||
|
AddCSource("pp_phys.c");
|
||||||
|
AddCSource("pp_step.c");
|
||||||
|
AddCSource("pp_space.c");
|
||||||
|
AddCSource("pp_sim.c");
|
||||||
|
AddCSource("pp_core.c");
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
AddInit(StartupPpDeps);
|
||||||
|
AddInit(StartupSim);
|
||||||
|
AddInit(StartupUser);
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include "watch.h"
|
|
||||||
|
|
||||||
#include "watch_core.c"
|
|
||||||
void W_Main(void)
|
|
||||||
{
|
|
||||||
RunOnce();
|
|
||||||
W_StartupDeps();
|
|
||||||
W_StartupCore();
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
#ifndef WATCH_H
|
|
||||||
#define WATCH_H
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer dependencies
|
|
||||||
|
|
||||||
#include "../base/base.h"
|
|
||||||
#include "../platform/platform.h"
|
|
||||||
inline void W_StartupDeps(void)
|
|
||||||
{
|
|
||||||
BaseMain();
|
|
||||||
P_Main();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////
|
|
||||||
//~ Layer headers
|
|
||||||
|
|
||||||
#include "watch_core.h"
|
|
||||||
void W_Main(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
17
src/watch/watch.lay
Normal file
17
src/watch/watch.lay
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@Layer watch
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Dependencies
|
||||||
|
|
||||||
|
@Dep base
|
||||||
|
@Dep platform
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Api
|
||||||
|
|
||||||
|
@CpuApi watch_core
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
//~ Init
|
||||||
|
|
||||||
|
@Init W_StartupCore
|
||||||
Loading…
Reference in New Issue
Block a user