Skip to content

Commit

Permalink
Adding events back into the doco, and removing link to youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
robrohan committed May 26, 2024
1 parent 93109cd commit 0e8ad00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions docs/NARRATIVE
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 10 additions & 7 deletions src/events.c
Original file line number Diff line number Diff line change
@@ -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"
/*
Expand All @@ -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_
Expand Down

0 comments on commit 0e8ad00

Please sign in to comment.