Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Mar 25, 2024
1 parent b31a138 commit c5e5875
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 21 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions Dependencies.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -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(
Expand All @@ -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)
Expand All @@ -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(
Expand Down
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 0 additions & 16 deletions seika/main.c

This file was deleted.

0 comments on commit c5e5875

Please sign in to comment.