diff --git a/code2/grime/pkg_mappings.odin b/code2/grime/pkg_mappings.odin new file mode 100644 index 0000000..e69de29 diff --git a/code2/host/host.odin b/code2/host/host.odin index e69de29..57ed869 100644 --- a/code2/host/host.odin +++ b/code2/host/host.odin @@ -0,0 +1,8 @@ +package host + + + +main :: proc() +{ + +} diff --git a/code2/sectr/Readme.md b/code2/sectr/Readme.md new file mode 100644 index 0000000..06eeca6 --- /dev/null +++ b/code2/sectr/Readme.md @@ -0,0 +1,2 @@ +# Sectr Package + diff --git a/code2/sectr/colors.odin b/code2/sectr/colors.odin new file mode 100644 index 0000000..2432dbc --- /dev/null +++ b/code2/sectr/colors.odin @@ -0,0 +1 @@ +package sectr diff --git a/code2/sectr/engine/client_api.odin b/code2/sectr/engine/client_api.odin new file mode 100644 index 0000000..82946b0 --- /dev/null +++ b/code2/sectr/engine/client_api.odin @@ -0,0 +1,52 @@ +package sectr + +import "base:runtime" +import c "core:c/libc" +import "core:dynlib" + +Path_Assets :: "../assets/" +Path_Shaders :: "../shaders/" +Path_Input_Replay :: "input.sectr_replay" + +ModuleAPI :: struct { + lib: dynlib.Library, + // write-time: FileTime, + + startup: type_of( startup ), + shutdown: type_of( sectr_shutdown ), + reload: type_of( hot_reload ), + tick: type_of( tick ), + clean_frame: type_of( clean_frame ), +} + +StartupContext :: struct {} + +@export +startup :: proc(ctx: StartupContext) +{ + +} + +@export +sectr_shutdown :: proc() +{ + +} + +@export +hot_reload :: proc() +{ + +} + +@export +tick :: proc() +{ + +} + +@export +clean_frame ::proc() +{ + +} diff --git a/code2/sectr/pkg_mappings.odin b/code2/sectr/pkg_mappings.odin index e69de29..2432dbc 100644 --- a/code2/sectr/pkg_mappings.odin +++ b/code2/sectr/pkg_mappings.odin @@ -0,0 +1 @@ +package sectr diff --git a/code2/sectr/state.odin b/code2/sectr/state.odin index e69de29..2432dbc 100644 --- a/code2/sectr/state.odin +++ b/code2/sectr/state.odin @@ -0,0 +1 @@ +package sectr diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 5512436..f8678b9 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -10,7 +10,7 @@ $ini_parser = join-path $PSScriptRoot 'helpers/ini.ps1' write-host 'ini.ps1 imported' $path_root = git rev-parse --show-toplevel -$path_code = join-path $path_root 'code' +$path_code = join-path $path_root 'code2' $path_build = join-path $path_root 'build' $path_scripts = join-path $path_root 'scripts' $path_thirdparty = join-path $path_root 'thirdparty' @@ -91,6 +91,7 @@ $flag_optimize_size = '-o:size' $flag_optimize_speed = '-o:speed' $falg_optimize_aggressive = '-o:aggressive' $flag_pdb_name = '-pdb-name:' +$flag_radlink = '-radlink' $flag_sanitize_address = '-sanitize:address' $flag_sanitize_memory = '-sanitize:memory' $flag_sanitize_thread = '-sanitize:thread' @@ -138,12 +139,10 @@ push-location $path_root function build-prototype { push-location $path_code - $project_name = 'sectr' + $project_name = 'sectr2' write-host "`nBuilding Sectr Prototype`n" - $path_font = join-path $path_code 'font' - $module_scripts = $PSScriptRoot $package_grime = join-path $path_code 'grime' $package_VEFontCache = join-path $path_code 'VEFontCache' @@ -196,6 +195,7 @@ push-location $path_root } $linker_args = "" + # $linker_args += $flag_radlink # $linker_args += ( $flag_msvc_link_debug + ' ' ) $linker_args += ( $flag_msvc_link_disable_dynamic_base + ' ' ) $linker_args += ( $flag_msvc_link_fixed_base_address + ' ' ) @@ -284,6 +284,7 @@ push-location $path_root write-host 'Building Host Module' $linker_args = "" + # $linker_args += $flag_radlink # $linker_args += ( $flag_msvc_link_disable_dynamic_base + ' ' ) # $linker_args += ( $flag_msvc_link_stack_size + ' ')