GithubHelp home page GithubHelp logo

leoking01 / opengl_cmake_skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arthursonzogni/opengl_cmake_skeleton

0.0 1.0 0.0 7.37 MB

:heart: A ready to use cmake skeleton using GLFW, Glew and glm. :+1:

Home Page: https://arthursonzogni.com

License: MIT License

C++ 92.42% CMake 3.20% GLSL 4.39%

opengl_cmake_skeleton's Introduction

OpenGL CMake Skeleton Build Status

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
  • Mac

It 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

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:

git submodule init
git submodule update

usage (WebAssembly) :

Switch to the webassembly branch

git checkout webassembly

Install emscripten, then

mkdir build_emscripten
cd build_emscripten
CC=emcc CXX=em++ cmake ..
make
python -m SimpleHTTPServer 8000

Now, visit http://localhost:8000

usage (Linux) :

Some standard library to install:

sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev

Open the directory into a terminal
```bash
mkdir build
cd build
cmake ..
./main

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.

opengl_cmake_skeleton's People

Contributors

arthursonzogni avatar posva avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.