From 7253f808c6eda60fc76547faf165b329a1fd99bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 8 Jan 2014 12:13:46 +0100 Subject: [PATCH] add readme info about protobuf styles --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 47db97996..10f514826 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,17 @@ 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.