7
0
mirror of https://gitlab.com/raylibtemplates/rt.git synced 2026-06-04 09:50:54 -04:00

Changed GameLoop Structure

This commit is contained in:
maple
2025-11-04 23:10:36 +00:00
parent e6c3ec5406
commit 1809136c5c
9 changed files with 318 additions and 2223 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,60 +0,0 @@
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"jsonFile" : "directory-.-f5ebdc15457944623624.json",
"minimumCMakeVersion" :
{
"string" : "3.11"
},
"projectIndex" : 0,
"source" : ".",
"targetIndexes" :
[
0
]
}
],
"name" : "",
"projects" :
[
{
"directoryIndexes" :
[
0
],
"name" : "game",
"targetIndexes" :
[
0
]
}
],
"targets" :
[
{
"directoryIndex" : 0,
"id" : "game::@6890427a1f51a3e7e1df",
"jsonFile" : "target-game-899ee5236cc3b4912700.json",
"name" : "game",
"projectIndex" : 0
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "/home/maple/Documents/WebTest/build",
"source" : "/home/maple/Documents/WebTest"
},
"version" :
{
"major" : 2,
"minor" : 8
}
}

View File

@@ -1,184 +0,0 @@
{
"cmake" :
{
"generator" :
{
"multiConfig" : false,
"name" : "Unix Makefiles"
},
"paths" :
{
"cmake" : "/usr/bin/cmake",
"cpack" : "/usr/bin/cpack",
"ctest" : "/usr/bin/ctest",
"root" : "/usr/share/cmake"
},
"version" :
{
"isDirty" : false,
"major" : 4,
"minor" : 1,
"patch" : 2,
"string" : "4.1.2",
"suffix" : ""
}
},
"objects" :
[
{
"jsonFile" : "codemodel-v2-73917371340ab84b9289.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 8
}
},
{
"jsonFile" : "configureLog-v1-04e4844e0f707810d43c.json",
"kind" : "configureLog",
"version" :
{
"major" : 1,
"minor" : 0
}
},
{
"jsonFile" : "cache-v2-feb0d4dafe98c00810f5.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-e68c0d9f9e6999829e38.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 1
}
},
{
"jsonFile" : "toolchains-v1-472da71fdd0015ae2c28.json",
"kind" : "toolchains",
"version" :
{
"major" : 1,
"minor" : 0
}
}
],
"reply" :
{
"client-neocmake" :
{
"query.json" :
{
"requests" :
[
{
"kind" : "codemodel",
"version" :
[
{
"major" : 2,
"minor" : 8
}
]
},
{
"kind" : "configureLog",
"version" :
[
{
"major" : 1,
"minor" : 0
}
]
},
{
"kind" : "cache",
"version" :
[
{
"major" : 2,
"minor" : 0
}
]
},
{
"kind" : "cmakeFiles",
"version" :
[
{
"major" : 1,
"minor" : 1
}
]
},
{
"kind" : "toolchains",
"version" :
[
{
"major" : 1,
"minor" : 0
}
]
}
],
"responses" :
[
{
"jsonFile" : "codemodel-v2-73917371340ab84b9289.json",
"kind" : "codemodel",
"version" :
{
"major" : 2,
"minor" : 8
}
},
{
"jsonFile" : "configureLog-v1-04e4844e0f707810d43c.json",
"kind" : "configureLog",
"version" :
{
"major" : 1,
"minor" : 0
}
},
{
"jsonFile" : "cache-v2-feb0d4dafe98c00810f5.json",
"kind" : "cache",
"version" :
{
"major" : 2,
"minor" : 0
}
},
{
"jsonFile" : "cmakeFiles-v1-e68c0d9f9e6999829e38.json",
"kind" : "cmakeFiles",
"version" :
{
"major" : 1,
"minor" : 1
}
},
{
"jsonFile" : "toolchains-v1-472da71fdd0015ae2c28.json",
"kind" : "toolchains",
"version" :
{
"major" : 1,
"minor" : 0
}
}
]
}
}
}
}

View File

@@ -1,145 +0,0 @@
{
"artifacts" :
[
{
"path" : "game"
}
],
"backtrace" : 1,
"backtraceGraph" :
{
"commands" :
[
"add_executable",
"target_link_libraries",
"set_target_properties",
"find_package",
"target_sources"
],
"files" :
[
"CMakeLists.txt",
"/usr/lib/cmake/raylib/raylib-config.cmake"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 27,
"parent" : 0
},
{
"command" : 1,
"file" : 0,
"line" : 36,
"parent" : 0
},
{
"command" : 3,
"file" : 0,
"line" : 8,
"parent" : 0
},
{
"file" : 1,
"parent" : 3
},
{
"command" : 2,
"file" : 1,
"line" : 63,
"parent" : 4
},
{
"command" : 4,
"file" : 0,
"line" : 30,
"parent" : 0
},
{
"command" : 4,
"file" : 0,
"line" : 33,
"parent" : 0
}
]
},
"compileGroups" :
[
{
"compileCommandFragments" :
[
{
"backtrace" : 2,
"fragment" : "-I/usr/include"
}
],
"language" : "C",
"sourceIndexes" :
[
0
]
}
],
"id" : "game::@6890427a1f51a3e7e1df",
"link" :
{
"commandFragments" :
[
{
"backtrace" : 2,
"fragment" : "/usr/lib/libraylib.so",
"role" : "libraries"
},
{
"backtrace" : 5,
"fragment" : "-L/usr/lib -lraylib",
"role" : "libraries"
}
],
"language" : "C"
},
"name" : "game",
"nameOnDisk" : "game",
"paths" :
{
"build" : ".",
"source" : "."
},
"sourceGroups" :
[
{
"name" : "Source Files",
"sourceIndexes" :
[
0
]
},
{
"name" : "Header Files",
"sourceIndexes" :
[
1
]
}
],
"sources" :
[
{
"backtrace" : 6,
"compileGroupIndex" : 0,
"path" : "src/main.c",
"sourceGroupIndex" : 0
},
{
"backtrace" : 7,
"path" : "data/cube.png.h",
"sourceGroupIndex" : 1
}
],
"type" : "EXECUTABLE"
}

View File

@@ -14,6 +14,12 @@
# EXTERNAL cache entries
########################
//Examples
BUILD_RAYLIB_CPP_EXAMPLES:BOOL=OFF
//Build C++ modules support
BUILD_RAYLIB_CPP_MODULES:BOOL=OFF
//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
@@ -153,6 +159,21 @@ CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=game
//Value Computed by CMake
CMAKE_PROJECT_VERSION:STATIC=5.5.0
//Value Computed by CMake
CMAKE_PROJECT_VERSION_MAJOR:STATIC=5
//Value Computed by CMake
CMAKE_PROJECT_VERSION_MINOR:STATIC=5
//Value Computed by CMake
CMAKE_PROJECT_VERSION_PATCH:STATIC=0
//Value Computed by CMake
CMAKE_PROJECT_VERSION_TWEAK:STATIC=
//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
@@ -218,6 +239,29 @@ CMAKE_TAPI:FILEPATH=CMAKE_TAPI-NOTFOUND
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Directory under which to collect all populated content
FETCHCONTENT_BASE_DIR:PATH=/home/maple/Documents/WebTest/build/_deps
//Disables all attempts to download or update content and assumes
// source dirs already exist
FETCHCONTENT_FULLY_DISCONNECTED:BOOL=OFF
//Enables QUIET option for all content population
FETCHCONTENT_QUIET:BOOL=ON
//When not empty, overrides where to find pre-populated content
// for raylib_cpp
FETCHCONTENT_SOURCE_DIR_RAYLIB_CPP:PATH=
//Enables UPDATE_DISCONNECTED behavior for all content population
FETCHCONTENT_UPDATES_DISCONNECTED:BOOL=OFF
//Enables UPDATE_DISCONNECTED behavior just for population of raylib_cpp
FETCHCONTENT_UPDATES_DISCONNECTED_RAYLIB_CPP:BOOL=OFF
//Git command line client
GIT_EXECUTABLE:FILEPATH=/usr/bin/git
//Arguments to supply to pkg-config
PKG_CONFIG_ARGN:STRING=
@@ -257,6 +301,18 @@ raylib_INCLUDE_DIR:PATH=/usr/include
//Path to a library.
raylib_LIBRARY:FILEPATH=/usr/lib/libraylib.so
//Value Computed by CMake
raylib_cpp_BINARY_DIR:STATIC=/home/maple/Documents/WebTest/build/_deps/raylib_cpp-build
//The directory containing a CMake configuration file for raylib_cpp.
raylib_cpp_DIR:PATH=raylib_cpp_DIR-NOTFOUND
//Value Computed by CMake
raylib_cpp_IS_TOP_LEVEL:STATIC=OFF
//Value Computed by CMake
raylib_cpp_SOURCE_DIR:STATIC=/home/maple/Documents/WebTest/build/_deps/raylib_cpp-src
########################
# INTERNAL cache entries
@@ -411,6 +467,8 @@ CMAKE_TAPI-ADVANCED:INTERNAL=1
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: GIT_EXECUTABLE
GIT_EXECUTABLE-ADVANCED:INTERNAL=1
PC_RAYLIB_CFLAGS:INTERNAL=-I/usr/include
PC_RAYLIB_CFLAGS_I:INTERNAL=
PC_RAYLIB_CFLAGS_OTHER:INTERNAL=

View File

@@ -1962,3 +1962,258 @@ events:
- "/usr/pkg"
- "/opt"
...
---
events:
-
kind: "find_package-v1"
backtrace:
- "CMakeLists.txt:23 (find_package)"
name: "raylib_cpp"
configs:
-
filename: "raylib_cppConfig.cmake"
kind: "cmake"
-
filename: "raylib_cpp-config.cmake"
kind: "cmake"
version_request:
exact: false
settings:
required: "optional"
quiet: true
global: false
policy_scope: true
bypass_provider: false
names:
- "raylib_cpp"
path_suffixes:
- ""
paths:
CMAKE_FIND_USE_CMAKE_PATH: true
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: true
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: true
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: true
CMAKE_FIND_USE_INSTALL_PREFIX: true
CMAKE_FIND_USE_PACKAGE_ROOT_PATH: true
CMAKE_FIND_USE_CMAKE_PACKAGE_REGISTRY: true
CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY: true
CMAKE_FIND_ROOT_PATH_MODE: "BOTH"
candidates:
-
path: "/home/maple/Documents/WebTest/build/CMakeFiles/pkgRedirects/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/home/maple/Documents/WebTest/build/CMakeFiles/pkgRedirects/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/home/maple/.local/share/nvim/mason/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/home/maple/.local/share/nvim/mason/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/local/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/local/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/emscripten/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/emscripten/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/emscripten/cmake/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/emscripten/cmake/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/var/lib/flatpak/exports/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/var/lib/flatpak/exports/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/jvm/default/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/jvm/default/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/site_perl/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/site_perl/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/vendor_perl/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/vendor_perl/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/core_perl/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/bin/core_perl/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/rustup/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/usr/lib/rustup/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
-
path: "/opt/raylib_cppConfig.cmake"
mode: "config"
reason: "no_exist"
-
path: "/opt/raylib_cpp-config.cmake"
mode: "config"
reason: "no_exist"
found: null
search_context:
ENV{PATH}:
- "/home/maple/.local/share/nvim/mason/bin"
- "/usr/local/sbin"
- "/usr/local/bin"
- "/usr/bin"
- "/usr/lib/emscripten"
- "/var/lib/flatpak/exports/bin"
- "/usr/lib/jvm/default/bin"
- "/usr/bin/site_perl"
- "/usr/bin/vendor_perl"
- "/usr/bin/core_perl"
- "/usr/lib/rustup/bin"
CMAKE_INSTALL_PREFIX: "/usr/local"
CMAKE_SYSTEM_PREFIX_PATH:
- "/usr/local"
- "/usr"
- "/"
- "/usr"
- "/usr/local"
- "/usr/X11R6"
- "/usr/pkg"
- "/opt"
-
kind: "find-v1"
backtrace:
- "/usr/share/cmake/Modules/FindGit.cmake:86 (find_program)"
- "/usr/share/cmake/Modules/FetchContent.cmake:1874 (find_package)"
- "/usr/share/cmake/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild)"
- "/usr/share/cmake/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)"
- "/usr/share/cmake/Modules/FetchContent.cmake:2145 (cmake_language)"
- "/usr/share/cmake/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)"
- "CMakeLists.txt:34 (FetchContent_MakeAvailable)"
mode: "program"
variable: "GIT_EXECUTABLE"
description: "Git command line client"
settings:
SearchFramework: "NEVER"
SearchAppBundle: "NEVER"
CMAKE_FIND_USE_CMAKE_PATH: true
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: true
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: true
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: true
CMAKE_FIND_USE_INSTALL_PREFIX: true
names:
- "git"
candidate_directories:
- "/home/maple/.local/share/nvim/mason/bin/"
- "/usr/local/sbin/"
- "/usr/local/bin/"
- "/usr/bin/"
- "/usr/lib/emscripten/"
- "/var/lib/flatpak/exports/bin/"
- "/usr/lib/jvm/default/bin/"
- "/usr/bin/site_perl/"
- "/usr/bin/vendor_perl/"
- "/usr/bin/core_perl/"
- "/usr/lib/rustup/bin/"
- "/usr/local/bin/"
- "/usr/local/sbin/"
- "/usr/local/"
- "/usr/bin/"
- "/usr/sbin/"
- "/usr/"
- "/bin/"
- "/sbin/"
- "/usr/X11R6/bin/"
- "/usr/X11R6/sbin/"
- "/usr/X11R6/"
- "/usr/pkg/bin/"
- "/usr/pkg/sbin/"
- "/usr/pkg/"
- "/opt/bin/"
- "/opt/sbin/"
- "/opt/"
searched_directories:
- "/home/maple/.local/share/nvim/mason/bin/git"
- "/usr/local/sbin/git"
- "/usr/local/bin/git"
found: "/usr/bin/git"
search_context:
ENV{PATH}:
- "/home/maple/.local/share/nvim/mason/bin"
- "/usr/local/sbin"
- "/usr/local/bin"
- "/usr/bin"
- "/usr/lib/emscripten"
- "/var/lib/flatpak/exports/bin"
- "/usr/lib/jvm/default/bin"
- "/usr/bin/site_perl"
- "/usr/bin/vendor_perl"
- "/usr/bin/core_perl"
- "/usr/lib/rustup/bin"
CMAKE_INSTALL_PREFIX: "/usr/local"
CMAKE_SYSTEM_PREFIX_PATH:
- "/usr/local"
- "/usr"
- "/"
- "/usr"
- "/usr/local"
- "/usr/X11R6"
- "/usr/pkg"
- "/opt"
...