-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
79 changed files
with
2,918 additions
and
926 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
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,48 @@ | ||
# `SDL_bgi` and Emscripten | ||
|
||
Unmodified `SDL_bgi` programs can be compiled to WebAssembly using the | ||
[Emscripten](https://emscripten.org/) compiler `emcc`. The following | ||
tools are used to produce standalone `html` files that can be run in | ||
supported browsers: | ||
|
||
- `src/Makefile` provides a `wasm` target, only available when the | ||
`EMSDK` environment variable is defined; | ||
- `test/emcc.sh` can be used to compile a program; | ||
- `test/Makefile.emcc` compiles the sample programs. | ||
|
||
Emscripten support was tested with `emcc` 3.1.8 and `clang'' 15.0.0 on | ||
GNU/Linux Mint 20.2 and MSYS2 20220503. | ||
|
||
|
||
## Installing Emscripten Support | ||
|
||
Emscripten must be properly installed, and the `EMSDK` environment | ||
variable must be defined; please consult the Emscripten [Download and | ||
install](https://emscripten.org/docs/getting_started/downloads.html) | ||
page. | ||
|
||
To compile `SDL_bgi` and install Emscripten support: | ||
|
||
``` | ||
$ cd src/ | ||
src/$ make wasm | ||
*** Building on Linux *** | ||
... | ||
src/$ make clean | ||
``` | ||
|
||
Files will be installed in appropriate directories: | ||
|
||
```` | ||
graphics.h -> $EMSDK/upstream/emscripten/cache/sysroot/include | ||
SDL_bgi.h -> $EMSDK/upstream/emscripten/cache/sysroot/include/SDL2 | ||
libSDL_bgi.a -> $EMSDK/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten | ||
```` | ||
|
||
To uninstall: | ||
|
||
```` | ||
$ cd src/ | ||
src/$ make unwasm | ||
```` | ||
|
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
TODO | ||
---- | ||
|
||
- colours as negative numbers: add 16 | ||
- colours as negative numbers (undocumented TC feature): add 16? | ||
- documentation: provide an example for each function | ||
|
||
Your suggestions are welcome! |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.5.0 | ||
2.6.0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
# README.md | ||
|
||
Documentation in this directory: | ||
|
||
- Compatibility (`compatibility.md`) | ||
|
||
- About internal fonts (`fonts.md`) | ||
|
||
- Functions (`functions.md`) | ||
|
||
- How to compile SDL_bgi programs with Code-Blocks (`howto_CodeBlocks.md`) | ||
|
||
- How to compile SDL_bgi programs with Dev-C++ (`howto_Dev-Cpp.md`) | ||
|
||
- How to turn an `SDL_bgi` program to an AppImage (`making_AppImages.md`) | ||
|
||
- SDL bgi 2.5.1 Quick Reference (`sdl_bgi-quickref.tex`) | ||
|
||
- Turtle Graphics Quick Reference (`turtlegraphics.tex`) | ||
|
||
- Using SDL_bgi (`using.md`) | ||
|
||
- graphics.3.gz (GNU/Linux manpage) | ||
|
||
All `.md` (Markdown) files have been converted to PDF using `pandoc` | ||
and the default PDF engine (pdflatex). If you want to modify these | ||
files and convert them to PDF without a LaTeX installation, a good | ||
alternative is `pdfroff`, provided by the `groff` package: | ||
|
||
```` | ||
pandoc --latex-engine=pdfroff file.md -o file.pdf | ||
```` | ||
|
||
Documents written in LaTeX are typeset with `pdflatex`. | ||
|
Oops, something went wrong.