Compare commits

...

11 Commits

Author SHA1 Message Date
Nic Barker
da490f0a83 merge 2025-01-10 17:06:00 +13:00
Nic Barker
ac61107eee initial attempt 2025-01-10 16:08:09 +13:00
Nic Barker
8237122350 more small fixes 2025-01-09 12:34:36 +13:00
Nic Barker
077eee61a5 update odin bindings and revert some accidental change
s
2025-01-09 12:31:53 +13:00
Nic Barker
5446fb6d7e update generated wasm 2025-01-09 12:25:00 +13:00
Nic Barker
f186024e74 Expose getter for max element counts 2025-01-09 12:21:20 +13:00
Nic Barker
73d2186d95 merge main 2025-01-09 12:17:53 +13:00
Nic Barker
5cca7f5026 Update for c99 compat 2025-01-09 12:11:08 +13:00
Harrison Lambeth
bebf60a9eb more rearrange stuff 2025-01-08 01:50:15 -07:00
Harrison Lambeth
1675f0eaf3 rearrange stuff 2025-01-08 01:48:17 -07:00
Harrison Lambeth
6c0061cab8 seems like this fully works 2025-01-08 01:35:51 -07:00
7 changed files with 1073 additions and 702 deletions

View File

@ -8,6 +8,7 @@ add_subdirectory("examples/cpp-project-example")
# Don't try to compile C99 projects using MSVC # Don't try to compile C99 projects using MSVC
if(NOT MSVC) if(NOT MSVC)
add_subdirectory("examples/raylib-sidebar-scrolling-container") add_subdirectory("examples/raylib-sidebar-scrolling-container")
add_subdirectory("examples/multi-context-raylib-sidebar-scrolling-container")
add_subdirectory("examples/raylib-multi-context") add_subdirectory("examples/raylib-multi-context")
# add_subdirectory("examples/cairo-pdf-rendering") Some issue with github actions populating cairo, disable for now # add_subdirectory("examples/cairo-pdf-rendering") Some issue with github actions populating cairo, disable for now
add_subdirectory("examples/clay-official-website") add_subdirectory("examples/clay-official-website")

1480
clay.h

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
cmake_minimum_required(VERSION 3.27)
project(clay_examples_multi_context_raylib_sidebar_scrolling_container C)
set(CMAKE_C_STANDARD 99)
# Adding Raylib
include(FetchContent)
set(FETCHCONTENT_QUIET FALSE)
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # don't build the supplied example games
FetchContent_Declare(
raylib
GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
GIT_TAG "master"
GIT_PROGRESS TRUE
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(raylib)
add_executable(clay_examples_multi_context_raylib_sidebar_scrolling_container main.c)
target_compile_options(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC)
target_include_directories(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC .)
target_link_libraries(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC raylib)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
add_custom_command(
TARGET clay_examples_multi_context_raylib_sidebar_scrolling_container POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/resources
${CMAKE_CURRENT_BINARY_DIR}/resources)

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB