Mounten position based on screen ratio

This commit is contained in:
Nikola Petrov
2024-03-13 23:37:02 +01:00
parent 03f47bcee5
commit d06018ed16
3 changed files with 22 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
RAYFLAGS= -D_GNU_SOURCE -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
RAYINCLUDE= -Iraylib/src -Iraylib/src/external/glfw/include -Iraylib/src/external/glfw/deps/mingw
RAYOBJECTS= rl/rcore.o rl/rshapes.o rl/rtextures.o rl/rtext.o rl/utils.o rl/rglfw.o rl/rmodels.o rl/raudio.o
RAYOBJECTS= obj/rcore.o obj/rshapes.o obj/rtextures.o obj/rtext.o obj/utils.o obj/rglfw.o obj/rmodels.o obj/raudio.o
#RAYOPT= -O3
RAYOPT= -ggdb
@@ -14,33 +14,30 @@ setup:
fi
if [ ! -d "obj" ]; then \
mkdir -p obj; \
fi
if [ ! -d "rl" ]; then \
mkdir -p rl; \
fi
rl/rcore.o: raylib/src/rcore.c
obj/rcore.o: raylib/src/rcore.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/rshapes.o: raylib/src/rshapes.c
obj/rshapes.o: raylib/src/rshapes.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/rtextures.o: raylib/src/rtextures.c
obj/rtextures.o: raylib/src/rtextures.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/rtext.o: raylib/src/rtext.c
obj/rtext.o: raylib/src/rtext.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/utils.o: raylib/src/utils.c
obj/utils.o: raylib/src/utils.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/rglfw.o: raylib/src/rglfw.c
obj/rglfw.o: raylib/src/rglfw.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/rmodels.o: raylib/src/rmodels.c
obj/rmodels.o: raylib/src/rmodels.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
rl/raudio.o: raylib/src/raudio.c
obj/raudio.o: raylib/src/raudio.c
gcc -c $< -o $@ $(RAYOPT) $(RAYFLAGS) $(RAYINCLUDE)
SRCDIR = src
@@ -66,7 +63,7 @@ run: main
./main
clean:
rm -rf obj
rm -rf $(OBJECTS)
rm -f main example
cleanAll: clean