some demos of opengl + glfw + glew + glm bundled together
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
opengl-wrapper
samples
.gitignore
CMakeLists.txt
README.md

README.md

opengl-playground

Just a very basic opengl wrapper with Linux & Windows support via CMake. Examples included.

Dependencies

Windows

Create directory for dependencies, ex: C:/libs, then:

glew

Checkout:

https://github.com/Perlmint/glew-cmake

On console, move to glew-cmake/build/cmake/, type:

cmake . -DCMAKE_INSTALL_PREFIX="C:/libs/" -Dglew-cmake_BUILD_STATIC=ON

cmake --build . --target install

glfw

Checkout:

https://github.com/glfw/glfw

On console, move to glfw/, type:

mkdir build

cd build

cmake . -DCMAKE_INSTALL_PREFIX="C:/libs/"

cmake --build .. --target install

glm

Checkout:

https://github.com/g-truc/glm

On console, move to glm/, type:

mkdir build

cd build

cmake .. -DCMAKE_INSTALL_PREFIX="C:/libs/"

cmake --build . --target install

Linux

glfw

sudo apt-get install libglfw3-dev

glew

Checkout:

https://github.com/Perlmint/glew-cmake

cd glew-cmake

mkdir build

cd build

cmake ..

cmake --build . --target install

Building

git clone https://github.com/dbeef/opengl-playground.git

cd opengl-playground/

mkdir build

cd build

cmake .. -DCMAKE_INSTALL_PREFIX="C:/libs/"

cmake --build .

Running

Windows

After building, go to build/bin/Debug/, put your glew32.dll there and since then you can run examples.

Linux

After building, go to build/bin/, move build/bin/resources/ directory from build/bin/Debug/ directory so it would look like build/bin/resources, and then you can run examples (sorry for inconvenience, need to fix that cmake).