diff --git a/README.md b/README.md index 3374777..9bf6e0a 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ Wefx is a simple graphics library for drawing using C, WASM ([Web Assembly][weba WebGL or anything like that. It is doing very basic pixel manipulation and has very simple functions to draw pixels and lines. -If you would like to see an overview of Wefx, you can watch a [video of the project on YouTube][video] - You can also [download the documentation](https://raw.githubusercontent.com/robrohan/wefx/main/docs/manual.pdf) ![Example Screenshot](https://raw.githubusercontent.com/robrohan/wefx/main/docs/wefx_shot.png) @@ -177,6 +175,5 @@ Studio. You will have to install `clang` as an add on, and then setup the build flags to the ones shown in the `Makefile`. [gfx]: https://www3.nd.edu/~dthain/courses/cse20211/fall2013/gfx/ -[video]: https://www.youtube.com/watch?v=vrqixVOd-rc [webassembly]: https://en.wikipedia.org/wiki/WebAssembly [htmlcanvas]: https://en.wikipedia.org/wiki/Canvas_element diff --git a/docs/NARRATIVE b/docs/NARRATIVE index 3c66124..0e1d0e1 100644 --- a/docs/NARRATIVE +++ b/docs/NARRATIVE @@ -2,6 +2,7 @@ header.md ../README.md ../src/wefx.c ../src/math.c +../src/events.c ../src/walloc.h ../src/wasm.h footer.md diff --git a/src/events.c b/src/events.c index b7c6555..f13b70d 100644 --- a/src/events.c +++ b/src/events.c @@ -1,3 +1,13 @@ +/* + +# Event Queue + +In order to process browser events (keyboard and mouse input), we use +a simple Queue. The Javascript that hosts this code will capture events +in the browser and pass them into C using the queue. We can then use the +queue to look at and process those events. + +*/ #include "events.h" #include "wasm.h" /* @@ -9,13 +19,6 @@ E.g. Mouse down, mouse move, key down, etc. EXPORT wefx_event_queue *wefx_q = NULL; /* -# Event Queue - -In order to process browser events (keyboard and mouse input), we use -a simple Queue. The Javascript that hosts this code will capture events -in the browser and pass them into C using the queue. We can then use the -queue to look at and process those events. - ## Open Events - wefx_open_events Similar to how _wefx\_open_ created screen memory, the _wefx_open_events_