-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
screen.h: Factor out the minimal graphics stuff, implement a dumb VT1…
…00 mode for POSIX And clang-format and detab. And add a Makefile. And fix all -W -Wall warnings from Clang.
- Loading branch information
1 parent
5072419
commit 1788caf
Showing
6 changed files
with
322 additions
and
330 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
BasedOnStyle: LLVM | ||
Standard: Cpp11 | ||
IndentWidth: 4 | ||
UseTab: Never | ||
AccessModifierOffset: -4 | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortFunctionsOnASingleLine: None |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CXXFLAGS=-std=c++17 | ||
|
||
all: ThreeBody Sun-Earth-Moon Collision | ||
|
||
ThreeBody: ThreeBody.cpp screen.h vec2.h | ||
$(CXX) $(CXXFLAGS) ThreeBody.cpp -o $@ | ||
|
||
Sun-Earth-Moon: Sun-Earth-Moon.cpp screen.h vec2.h | ||
$(CXX) $(CXXFLAGS) Sun-Earth-Moon.cpp -o $@ | ||
|
||
Collision: Collision.cpp screen.h vec2.h | ||
$(CXX) $(CXXFLAGS) Collision.cpp -o $@ | ||
|
||
clean: | ||
rm -f ThreeBody Sun-Earth-Moon Collision | ||
|
||
.PHONY: clean |
This file contains 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
This file contains 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
Oops, something went wrong.