From a669a3849c25dd21c83151e90c1df20058d6a5b3 Mon Sep 17 00:00:00 2001 From: hgn Date: Sun, 18 Jul 2021 12:52:29 +0100 Subject: [PATCH] init Former-commit-id: f17b92e32e2edae3692d5ea87844fbdf4a779952 --- .gitignore | 46 ++++++++++++++++++++++++++ build.sh.REMOVED.git-id | 1 + dr_soft/miniaudio.h.REMOVED.git-id | 1 + fishladder.c | 29 ++++++++++++++++ gl/KHR/khrplatform.h.REMOVED.git-id | 1 + gl/glad.c.REMOVED.git-id | 1 + gl/glad/glad.h.REMOVED.git-id | 1 + gl/glfw3.h.REMOVED.git-id | 1 + gl/glfw3native.h.REMOVED.git-id | 1 + stb/stb_vorbis.h.REMOVED.git-id | 1 + steam/steamworks_thin.h.REMOVED.git-id | 1 + vg/config.h | 17 ++++++++++ vg/vg.c | 0 vg/vg.h.REMOVED.git-id | 1 + vg/vg_audio.h.REMOVED.git-id | 1 + vg/vg_io.h.REMOVED.git-id | 1 + vg/vg_platform.h.REMOVED.git-id | 1 + 17 files changed, 105 insertions(+) create mode 100755 .gitignore create mode 100644 build.sh.REMOVED.git-id create mode 100644 dr_soft/miniaudio.h.REMOVED.git-id create mode 100644 fishladder.c create mode 100644 gl/KHR/khrplatform.h.REMOVED.git-id create mode 100644 gl/glad.c.REMOVED.git-id create mode 100644 gl/glad/glad.h.REMOVED.git-id create mode 100644 gl/glfw3.h.REMOVED.git-id create mode 100644 gl/glfw3native.h.REMOVED.git-id create mode 100644 stb/stb_vorbis.h.REMOVED.git-id create mode 100644 steam/steamworks_thin.h.REMOVED.git-id create mode 100644 vg/config.h create mode 100644 vg/vg.c create mode 100644 vg/vg.h.REMOVED.git-id create mode 100644 vg/vg_audio.h.REMOVED.git-id create mode 100644 vg/vg_io.h.REMOVED.git-id create mode 100644 vg/vg_platform.h.REMOVED.git-id diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..7913c0a --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# Gitignore for MMV project. +# Whitelist mode + +# Ignore all but directories +* +!*/ + +./build.linux + +# ALLOW ============================ +!.gitattributes +!.gitignore + +# Code sources _____________________ +# C source files +!*.c +!*.h + +# Blender projects +!*.blend + +# GLSL shader source files +!*.fs +!*.vs +!*.gls + +# Python source files +!*.py + +# Build scripts +!*.sh +!*.bat + +# Compiled resources _______________ +# MMV proprietary files +!*.vmd +!*.vma +!*.cfg +!*.vmv + +# Other game assets (3rd party) +!*.bdf +!*.png +!*.ogg +!*.txt +!*.tga diff --git a/build.sh.REMOVED.git-id b/build.sh.REMOVED.git-id new file mode 100644 index 0000000..ad270a8 --- /dev/null +++ b/build.sh.REMOVED.git-id @@ -0,0 +1 @@ +f21790a9a336d89783d4147f8e656664c2ab757a \ No newline at end of file diff --git a/dr_soft/miniaudio.h.REMOVED.git-id b/dr_soft/miniaudio.h.REMOVED.git-id new file mode 100644 index 0000000..3479942 --- /dev/null +++ b/dr_soft/miniaudio.h.REMOVED.git-id @@ -0,0 +1 @@ +84bc1e26c3ea0d9d4a9f2a9a47b39200f0c9426a \ No newline at end of file diff --git a/fishladder.c b/fishladder.c new file mode 100644 index 0000000..a9ce03a --- /dev/null +++ b/fishladder.c @@ -0,0 +1,29 @@ +// Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved + +//#define VG_STEAM +#include "vg/vg.h" + +int main( int argc, char *argv[] ) +{ + vg_init( argc, argv, "FishLadder" ); +} + +void vg_start(void) +{ + +} + +void vg_update(void) +{ + +} + +void vg_render(void) +{ + +} + +void vg_free(void) +{ + +} diff --git a/gl/KHR/khrplatform.h.REMOVED.git-id b/gl/KHR/khrplatform.h.REMOVED.git-id new file mode 100644 index 0000000..ef5978e --- /dev/null +++ b/gl/KHR/khrplatform.h.REMOVED.git-id @@ -0,0 +1 @@ +dd22d9270188f2878f5dd47806497b16b34db0fe \ No newline at end of file diff --git a/gl/glad.c.REMOVED.git-id b/gl/glad.c.REMOVED.git-id new file mode 100644 index 0000000..51c3f88 --- /dev/null +++ b/gl/glad.c.REMOVED.git-id @@ -0,0 +1 @@ +6495d19dc5a1e58feaac009f20b0fbfc1101b9ed \ No newline at end of file diff --git a/gl/glad/glad.h.REMOVED.git-id b/gl/glad/glad.h.REMOVED.git-id new file mode 100644 index 0000000..fa3e7e6 --- /dev/null +++ b/gl/glad/glad.h.REMOVED.git-id @@ -0,0 +1 @@ +07181990d9bb5d1c5cd72e3ee73cce178e36a7ee \ No newline at end of file diff --git a/gl/glfw3.h.REMOVED.git-id b/gl/glfw3.h.REMOVED.git-id new file mode 100644 index 0000000..ea1db15 --- /dev/null +++ b/gl/glfw3.h.REMOVED.git-id @@ -0,0 +1 @@ +671ba7252c1d0553790b8884473ba5480f50715f \ No newline at end of file diff --git a/gl/glfw3native.h.REMOVED.git-id b/gl/glfw3native.h.REMOVED.git-id new file mode 100644 index 0000000..d9c7eed --- /dev/null +++ b/gl/glfw3native.h.REMOVED.git-id @@ -0,0 +1 @@ +267e75ca9e01ad0b143a80b0e162004c99e4faae \ No newline at end of file diff --git a/stb/stb_vorbis.h.REMOVED.git-id b/stb/stb_vorbis.h.REMOVED.git-id new file mode 100644 index 0000000..770f6ca --- /dev/null +++ b/stb/stb_vorbis.h.REMOVED.git-id @@ -0,0 +1 @@ +2f62db244e2d0af405db20470a3054da0f3eca79 \ No newline at end of file diff --git a/steam/steamworks_thin.h.REMOVED.git-id b/steam/steamworks_thin.h.REMOVED.git-id new file mode 100644 index 0000000..01b210d --- /dev/null +++ b/steam/steamworks_thin.h.REMOVED.git-id @@ -0,0 +1 @@ +5c6397bb667707abf805d01af9ce6cf0dadb1c4f \ No newline at end of file diff --git a/vg/config.h b/vg/config.h new file mode 100644 index 0000000..01c9b0a --- /dev/null +++ b/vg/config.h @@ -0,0 +1,17 @@ +// Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved + +static struct button_binding vg_button_binds[] = +{ + { .name = "fire0", .bind = GLFW_MOUSE_BUTTON_LEFT }, + { .name = "fire1", .bind = GLFW_MOUSE_BUTTON_RIGHT }, + { .name = "noclip", .bind = GLFW_KEY_V, }, + { .name = "jump", .bind = GLFW_KEY_SPACE } +}; + +static struct axis_binding vg_axis_binds[] = +{ + { .name = "fire0", .positive = GLFW_MOUSE_BUTTON_LEFT, .negative = -1 }, + { .name = "fire1", .positive = GLFW_MOUSE_BUTTON_RIGHT, .negative = -1 }, + { .name = "horizontal", .positive = GLFW_KEY_D, .negative = GLFW_KEY_A }, + { .name = "vertical", .positive = GLFW_KEY_W, .negative = GLFW_KEY_S } +}; diff --git a/vg/vg.c b/vg/vg.c new file mode 100644 index 0000000..e69de29 diff --git a/vg/vg.h.REMOVED.git-id b/vg/vg.h.REMOVED.git-id new file mode 100644 index 0000000..50eddba --- /dev/null +++ b/vg/vg.h.REMOVED.git-id @@ -0,0 +1 @@ +5220ae750eba1ee17a6711a195b295db86d3e041 \ No newline at end of file diff --git a/vg/vg_audio.h.REMOVED.git-id b/vg/vg_audio.h.REMOVED.git-id new file mode 100644 index 0000000..9fe140d --- /dev/null +++ b/vg/vg_audio.h.REMOVED.git-id @@ -0,0 +1 @@ +f154983ff5daf1ca9c7d90a71567ff0d321c81c6 \ No newline at end of file diff --git a/vg/vg_io.h.REMOVED.git-id b/vg/vg_io.h.REMOVED.git-id new file mode 100644 index 0000000..6f36323 --- /dev/null +++ b/vg/vg_io.h.REMOVED.git-id @@ -0,0 +1 @@ +89254122208a4882c813db80da2b350910ec18da \ No newline at end of file diff --git a/vg/vg_platform.h.REMOVED.git-id b/vg/vg_platform.h.REMOVED.git-id new file mode 100644 index 0000000..810ab7d --- /dev/null +++ b/vg/vg_platform.h.REMOVED.git-id @@ -0,0 +1 @@ +bc610f6b9192f8818426e58c334a23d581430848 \ No newline at end of file -- 2.25.1