diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a7f04f..9f52cd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,10 +54,6 @@ else() endif() if (SK_IS_MAIN) - # Temp testing with main, move/update to seika-example repo later - add_executable(${PROJECT_NAME}_app seika/main.c) - target_link_libraries(${PROJECT_NAME}_app ${PROJECT_NAME}) - # Create seika test exe add_executable(${PROJECT_NAME}_test test/test.c) target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME} unity) diff --git a/Dependencies.cmake b/Dependencies.cmake index 4a76c48..3aaa1b2 100644 --- a/Dependencies.cmake +++ b/Dependencies.cmake @@ -1,5 +1,6 @@ include(FetchContent) +# https://github.com/libsdl-org/SDL if (NOT TARGET SDL3::SDL3-static) set(SDL_STATIC ON) set(SDL_SHARED OFF) @@ -12,11 +13,13 @@ if (NOT TARGET SDL3::SDL3-static) FetchContent_MakeAvailable(SDL_content) endif () +# https://github.com/Dav1dde/glad if (NOT TARGET glad) add_library(glad thirdparty/glad/glad.c) target_include_directories(glad PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty") endif() +# https://github.com/recp/cglm if (NOT TARGET cglm) set(CGLM_STATIC ON) set(CGLM_SHARED OFF) @@ -29,6 +32,7 @@ if (NOT TARGET cglm) FetchContent_MakeAvailable(cglm_content) endif() +# https://github.com/DaveGamble/cJSON if (NOT TARGET cjson) FetchContent_Declare( cjson_content @@ -38,6 +42,7 @@ if (NOT TARGET cjson) FetchContent_MakeAvailable(cglm_content) endif() +# https://github.com/kuba--/zip if (NOT TARGET kuba_zip) include(FetchContent) FetchContent_Declare( @@ -48,16 +53,19 @@ if (NOT TARGET kuba_zip) FetchContent_MakeAvailable(kuba_zip_content) endif() +# https://github.com/mackron/miniaudio if (NOT TARGET miniaudio) add_library(miniaudio INTERFACE thirdparty/miniaudio/miniaudio.h) target_include_directories(miniaudio INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/miniaudio") endif() +# https://github.com/nothings/stb if (NOT TARGET stb_image) add_library(stb_image thirdparty/stb_image/stb_image.c) target_include_directories(stb_image PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty") endif() +# https://github.com/ThrowTheSwitch/Unity if (NOT TARGET unity) add_definitions(-DUNITY_INCLUDE_DOUBLE) include(FetchContent) @@ -69,6 +77,7 @@ if (NOT TARGET unity) FetchContent_MakeAvailable(unity_content) endif() +# https://github.com/freetype/freetype if (NOT TARGET freetype) include(FetchContent) FetchContent_Declare( diff --git a/README.md b/README.md index 0468491..5b0f9f8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,32 @@ [![ubuntu-gcc-build Actions Status](https://github.com/Chukobyte/seika/workflows/ubuntu-gcc-build/badge.svg)](https://github.com/Chukobyte/seika/actions) [![macosx-clang-build Actions Status](https://github.com/Chukobyte/seika/workflows/macosx-clang-build/badge.svg)](https://github.com/Chukobyte/seika/actions) -A framework that can be used to make games. +A framework for windows, macOS, and linux that can be used to make games. + +## Tech Stack + +- [C11](https://en.wikipedia.org/wiki/C_(programming_language)) +- [OpenGL 3.3](https://www.opengl.org/) +- [SDL3](https://github.com/libsdl-org/SDL) - Window, input, and other misc uses +- [clgm](https://github.com/recp/cglm) - Math +- [miniaudio](https://github.com/mackron/miniaudio) - Audio +- [freetype](https://github.com/freetype/freetype) - Font +- [unity](https://github.com/ThrowTheSwitch/Unity) - Unit Tests +- [zip](https://github.com/kuba--/zip) - Reading archives +- [stb image](https://github.com/nothings/stb) - Image loading +- [cJson](https://github.com/DaveGamble/cJSON) - Reading json files + +## Current Features + +- [x] 2D Sprite Renderer +- [x] Font Renderer +- [x] Customizable shaders (with custom langauge) +- [x] Audio +- [x] Networking (udp only for now) +- [x] pthread wrapper and thread pool +- [x] Math Library +- [x] ECS +- [x] Multiple data structures such as hashmap and array list (vector) ## How to include in a project diff --git a/seika/main.c b/seika/main.c deleted file mode 100644 index b533f4d..0000000 --- a/seika/main.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include "seika.h" - -int main() { - if (!ska_init_all("test", 800, 600, 800, 600)) { - return -1; - } - - while (ska_is_running()) { - ska_update(); - } - - ska_shutdown_all(); - - return 0; -}