summaryrefslogtreecommitdiff
path: root/README.md
blob: 10f5148262917693c90e8d7abcfad64305541668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44


# Build instructions

## Mac OS X

```
make
```


## Emscripten

```
emmake make emscripten
```

Note that mousewheel support requires a hacked emscripten:

In `src/library_glfw.js`, replace the first part of the mousewheel function with

```js
      GLFW.wheelPos = (event.detail || -event.deltaY);
```

In `system/include/GL/glfw.h`, replace the wheel callback typedef with

```c
typedef void (GLFWCALL * GLFWmousewheelfun)(float);
```



# Style protobuf

We're encoding the styling information as a protocol buffer, according to
proto/style.proto. The reason for doing so is that we don't have to ship with a
JSON/yaml parser. To test the conversion script, run

```
bin/convert-style.js | protoc --decode=style proto/style.proto
```

You should see a nicely formatted hierarchical output of the converted style.