Created
May 24, 2021 10:07
-
-
Save adamlwgriffiths/ea81da744e0a3b2883da6d997f9390da to your computer and use it in GitHub Desktop.
libraygui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXXFLAGS += -fPIC | |
CXXFLAGS += -O3 | |
CFLAGS=-I../raylib/src -I../raygui/src | |
all: lib/libraygui.so lib/libphysac.so | |
%.o: %.c | |
$(CC) -c -o $@ $< $(CFLAGS) | |
lib/libraygui.so: src/raygui.o lib | |
$(CC) -shared src/raygui.o -o $@ | |
lib/libphysac.so: src/physac.o lib | |
$(CC) -shared src/physac.o -o $@ | |
lib: | |
mkdir -p $@ | |
clean: | |
rm lib/*.so src/*.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <raylib.h> | |
#define PHYSAC_IMPLEMENTATION | |
#include <physac.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RAYGUI_IMPLEMENTATION | |
#define RAYGUI_SUPPORT_ICONS | |
#define GUI_TEXTBOX_EXTENDED_IMPLEMENTATION | |
#include <raygui.h> | |
#include <gui_textbox_extended.h> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment