-Demos:
*added ImGUI styles *added new assets (fonts, shaders) *added cimgui.dll *added imports for bindbc-sdl (for WASM) *added simple demo *added demo launcher *added snake demo *impoved demo utils *added cimgui.bc library for WASM -improved wasm build script -small change in vector
This commit is contained in:
parent
73f2aa6861
commit
cb7609dcaa
82 changed files with 11188 additions and 413 deletions
|
|
@ -36,8 +36,8 @@ clean = 0
|
|||
demo = 0
|
||||
sources = ['tests', 'source']
|
||||
emc_flags = '-s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS="[\'png\']" --preload-file assets '
|
||||
ldc_flags = '--d-version=SDL_209 --d-version=BindSDL_Static --d-version=BindSDL_Image '
|
||||
import_paths = ['external/imports', '../source', 'utils/source']
|
||||
ldc_flags = '--d-version=SDL_209 --d-version=BindSDL_Static --d-version=BindSDL_Image --d-version=MM_USE_POSIX_THREADS '
|
||||
import_paths = ['external/sources', 'external/imports', 'external/wasm_imports', '../source', 'utils/source', 'simple/source']
|
||||
|
||||
for arg in sys.argv[1:]:
|
||||
if(arg == '-release'):
|
||||
|
|
@ -74,18 +74,24 @@ for arg in sys.argv[1:]:
|
|||
print('unknown argument: ' + arg)
|
||||
exit()
|
||||
|
||||
compile(['external/imports/bindbc/sdl'], 'bindbc-sdl.bc')
|
||||
compile(['external/wasm_imports/bindbc/sdl'], 'bindbc-sdl.bc')
|
||||
compile(['utils/source'], 'utils.bc')
|
||||
compile(['simple/source'], 'demo.bc')
|
||||
compile(['external/sources/mmutils'], 'mmutils.bc')
|
||||
compile(['external/sources/glad'], 'glad.bc')
|
||||
compile(['source'], 'demo.bc')
|
||||
|
||||
if clean or os.path.exists('../ecs.bc') == 0 or os.path.isfile('../ecs.bc') == 0:
|
||||
compile(['../source'], '../ecs.bc')
|
||||
|
||||
emcc_cmd = 'emcc -v ' + shared_flags + emc_flags + '-s ALLOW_MEMORY_GROWTH=1 -s MALLOC=dlmalloc -s WASM=1 -o index.html '
|
||||
emcc_cmd = 'emcc -v ' + shared_flags + emc_flags + '-s ALLOW_MEMORY_GROWTH=1 -s MALLOC=dlmalloc -s FULL_ES2=1 -s WASM=1 -o index.html '
|
||||
|
||||
emcc_cmd += '../ecs.bc '
|
||||
emcc_cmd += 'utils.bc '
|
||||
emcc_cmd += 'bindbc-sdl.bc '
|
||||
emcc_cmd += 'glad.bc '
|
||||
emcc_cmd += 'cimgui.bc '
|
||||
emcc_cmd += 'nuklear.bc '
|
||||
emcc_cmd += 'mmutils.bc '
|
||||
emcc_cmd += 'demo.bc '
|
||||
|
||||
print emcc_cmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue