Skip to content

Commit

Permalink
Merge branch 'master' of github.com:graphicsfuzz/get-image-egl
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugues Evrard committed May 4, 2017
2 parents b253396 + 055ae31 commit 2f44750
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Run `get_image` on the provided `simple.frag` shader to test that it works. E.g.
./get_image --persist simple.frag
```

Note:

You should also have a file with the same name as the shader but with a .json extension.
This file should only contain an "{}"

## Usage

`./get_image <PATH_TO_FRAGMENT_SHADER>`
Expand Down Expand Up @@ -46,6 +51,12 @@ On Linux or OSX:
bash buildscripts/1-install-deps-travis.sh
```

Alternativly on Ubuntu you can:
```bash
sudo apt-get install libgles2-mesa-dev
```


(This will probably fail with an error at the last step, but all that matters is that the deps are created)

Once you have the deps downloaded, you can build with CMake as follows:
Expand Down Expand Up @@ -77,4 +88,4 @@ but are not entirely sure.

Note that you will see an awful lot of warnings. This is fine. As long as the build exits successfully,
try running the generated executable (in either Debug or Release in your build directory) on sample.frag
in the root of this project. If you get a pretty image called output.png then it has worked.
in the root of this project. If you get a pretty image called output.png then it has worked.
1 change: 1 addition & 0 deletions simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 2f44750

Please sign in to comment.