Browse Source

Merge branch 'master' of github.com:weskerfoot/nim-lsystems

master
Wesley Kerfoot 3 years ago
parent
commit
08e2c39d59
  1. 7
      compile_raygui.sh
  2. 3
      src/lsystem.nim

7
compile_raygui.sh

@ -1 +1,6 @@
gcc -shared -fPIC -DRAYGUIDEF -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 raygui.h -o raygui.so
#! /usr/bin/env bash
# Run from raygui/src
mv raygui.h raygui.c # Needed to compile as a shared library or else GCC won't expose symbols
gcc -shared -fPIC -DRAYGUIDEF -DRAYGUI_IMPLEMENTATION -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 raygui.c -o raygui.so
mv raygui.c raygui.h

3
src/lsystem.nim

@ -327,9 +327,6 @@ proc guiLoop*() =
instructionLists = @[]
startingPositions = @[]
screenWidth = (monitor.GetMonitorWidth() / 2).int
screenHeight = (monitor.GetMonitorHeight() / 2).int
# Make sure to clear the background before drawing
ClearBackground(BLACK)

Loading…
Cancel
Save