Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arthursonzogni/opengl_cmake_skeleton
:heart: A ready to use cmake skeleton using GLFW, Glew and glm. :+1:
https://github.com/arthursonzogni/opengl_cmake_skeleton
cmake cpp emscripten example glew glfw glm opengl skeleton template webassembly
Last synced: about 12 hours ago
JSON representation
:heart: A ready to use cmake skeleton using GLFW, Glew and glm. :+1:
- Host: GitHub
- URL: https://github.com/arthursonzogni/opengl_cmake_skeleton
- Owner: ArthurSonzogni
- License: mit
- Created: 2014-12-24T09:04:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T17:20:53.000Z (about 1 year ago)
- Last Synced: 2024-05-01T13:10:36.193Z (6 months ago)
- Topics: cmake, cpp, emscripten, example, glew, glfw, glm, opengl, skeleton, template, webassembly
- Language: C++
- Homepage: https://arthursonzogni.com
- Size: 7.2 MB
- Stars: 276
- Watchers: 7
- Forks: 44
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OpenGL CMake Skeleton [![Build Status](https://travis-ci.org/ArthurSonzogni/OpenGL_CMake_Skeleton.svg?branch=master)](https://travis-ci.org/ArthurSonzogni/OpenGL_CMake_Skeleton)
=======================A ready to use C++11 CMake OpenGL skeleton using **GLFW**, **Glew** and **glm**. (use git submodules)
It compiles on:
* **WebAssembly** (on branch webassembly. See instruction below)
* Linux
* Windows
* MacIt can compile for the Web with WebAssembly thanks to emscripten, as well as on
Linux, Windows and Mac.Shader class and example Application are included.
![output result](output.gif)
I am open to any comments and contributions.
Clone (With submodules):
========================```
git clone --recursive [email protected]:ArthurSonzogni/OpenGL_CMake_Skeleton.git
```Alternatively, if you don't used the --recursive option, you can type:
```bash
git submodule init
git submodule update
```usage (WebAssembly) :
---------------------
Switch to the webassembly branch
```
git checkout webassembly
```Install emscripten, then
```bash
mkdir build_emscripten
cd build_emscripten
emcmake cmake ..
make
python -m SimpleHTTPServer 8000
```Now, visit [http://localhost:8000](http://localhost:8000)
usage (Linux) :
---------------
Install some standard library, fetch the project, build and run:
```bash
sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev
git clone --recursive [email protected]:ArthurSonzogni/OpenGL_CMake_Skeleton.git
cd OpenGL_CMake_Skeleton
mkdir build
cd build
cmake ..
make -j
./opengl-cmake-skeleton
```usage (Windows) :
-----------------
For instance :
* cmake-gui .
* Configure (Choose for example Visual Studio generator)
* Generate
Launch the generated project in your favorite IDE and run it.