aboutsummaryrefslogtreecommitdiff
path: root/examples/viewer/README.md
blob: 79e544eed3306abffa6b6a9143c686c60728250b (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
# Simple .obj viewer with glew + glfw3 + OpenGL

## Requirements

* premake5
* glfw3
* glew


## Build on MaCOSX

Install glfw3 and glew using brew.
Then,

    $ premake5 gmake
    $ make

## Build on Linux

Set `PKG_CONFIG_PATH` or Edit path to glfw3 and glew in `premake4.lua`

Then,

    $ premake5 gmake
    $ make

## Build on Windows.

* Visual Studio 2013
* Windows 64bit
  * 32bit may work.

Put glfw3 and glew library somewhere and replace include and lib path in `premake4.lua`

Then,

    > premake5.exe vs2013