Skip to content

Commit

Permalink
Add RayGUI styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeodrippe committed Aug 20, 2024
1 parent d4a12d1 commit 3689596
Show file tree
Hide file tree
Showing 3 changed files with 2,249 additions and 108 deletions.
17 changes: 17 additions & 0 deletions bin/jextract-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,23 @@ cd raylib/src && \
cd - && \
cp "raylib/src/${VYBE_LIB_PREFIX}raylib.$VYBE_EXTENSION" native

# For a style replace static with RAYGUIAPI and the style into raygui.h so it's
# easier for compilation.
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/cherry/style_cherry.h
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/terminal/style_terminal.h
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/sunny/style_sunny.h
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/candy/style_candy.h
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/ashes/style_ashes.h
sed -i -e 's/static/RAYGUIAPI/g' raygui/styles/enefete/style_enefete.h
if ! grep -q cherry "raygui/src/raygui.h"; then
cat raygui/styles/cherry/style_cherry.h >> raygui/src/raygui.h
cat raygui/styles/terminal/style_terminal.h >> raygui/src/raygui.h
cat raygui/styles/sunny/style_sunny.h >> raygui/src/raygui.h
cat raygui/styles/candy/style_candy.h >> raygui/src/raygui.h
cat raygui/styles/ashes/style_ashes.h >> raygui/src/raygui.h
cat raygui/styles/enefete/style_enefete.h >> raygui/src/raygui.h
fi

$VYBE_GCC \
-shared \
bin/vybe_raylib.c \
Expand Down
Loading

0 comments on commit 3689596

Please sign in to comment.