• Stars
    star
    287
  • Rank 144,232 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

โค๏ธ A ready to use cmake skeleton using GLFW, Glew and glm. ๐Ÿ‘

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.

More Repositories

1

FTXUI

๐Ÿ’ป C++ Functional Terminal User Interface. โค๏ธ
C++
6,828
star
2

Diagon

Interactive ASCII art diagram generators. ๐ŸŒŸ
C++
1,619
star
3

json-tui

A JSON terminal UI made in C++
C++
342
star
4

git-tui

Collection of human friendly terminal interface for git.
C++
138
star
5

smk

SMK - Simple multimedia kit - C++ WebAssembly
C++
126
star
6

rgb-tui

Create and get colors code from the terminal using a nice interface.
C++
82
star
7

nlohmann_json_cmake_fetchcontent

A lightweight Release-tracking repository for nlohmann/json. Suitable for CMake fetchcontent. Automatically upgraded every weeks.
C++
78
star
8

ftxui-starter

A starter project using the FTXUI library
HTML
73
star
9

smkflow

A C++ dataflow node editor -- Compatible with WebAssembly.
C++
64
star
10

asm-dom-cmake

Virtual dom for C++ using asm-dom and cmake
CMake
25
star
11

FluidScripten

HTML fluid simulation using Emscripten, C++, cmake.
C++
24
star
12

CppBot

Portable C++ tools for bot creations : keyboard and mouse event generations, screen capture !
C++
23
star
13

chrome-log-beautifier

Make Chrome log fancy. Demultiplex by process/thread + colorize.
C++
17
star
14

termBreaker

C++
16
star
15

CommitTracker

A D3 visualisations of web browsers commits
Vue
14
star
16

gcloud-cpp-starter

[Starter project] web server & client. Fully C++/WebAssembly. Server runs on google cloud function. Client uses a C++ virtual dom.
C++
12
star
17

IceMaze

WebAssembly game: a sliding block adventure.
C++
12
star
18

light-flow-editor

A raytracer of implicit geometry bundled with a Node based editor.
C++
10
star
19

ANTLR-cmake-starter

โค๏ธ A ready to use CMake + ANTLR simple starter with not dependencies. ๐Ÿ‘
C++
10
star
20

InTheCube

The webassembly port of InTheCube
C++
9
star
21

pigami

A rolling block game
C++
8
star
22

cmake-Qt5-example

A simple example with Qt 5 and CMake
C++
7
star
23

OpenGL_CMake_Skeleton_WebAssembly

โค๏ธ A ready to use cmake OpenGL skeleton supporting WebAssembly using GLFW, Glew and glm. ๐Ÿ‘
C++
6
star
24

postwimp

Volumic 3D painting
C++
5
star
25

smk-starter

A starter project for the SMK library.
C++
5
star
26

neovim-configuration

my personal neovim configuration
Lua
3
star
27

learn-webgpu

C++
3
star
28

ANTLR-cmake-Emscripten-starter

โค๏ธ A ready to use CMake + ANTLR + Emscripten (WebAssembly) simple starter with not dependencies. ๐Ÿ‘
C++
3
star
29

gn

Mirror of the GN build system repository. Updated daily. https://gn.googlesource.com/gn/
C++
3
star
30

dawn

Mirror of the dawn (WebGPU) repository. Updated daily.
C++
3
star
31

wasm-simd-instruction-list

2
star
32

Animation3D-Ensimag-Starter

TP d'animation 3D
C++
2
star
33

Terra

A 3D world constructor using C++, OpenGL and SFML
C++
2
star
34

chromiumos-platform2

Mirror of the chromiumos/platform2 repository. Updated daily.
C++
1
star
35

wgpu-starter

Saving of my first working webgpu project in C++
C++
1
star
36

neural-webgpu

Testing webgpu for building neural networks.
C++
1
star
37

EnsimagZenithPlus

Script Greasmonkey apportant diverses amรฉliorations au ZENITH de l'Ensimag.
JavaScript
1
star
38

ftxui-window

C++
1
star
39

GPGPU-HPC

C++
1
star
40

StrangeMansion

C++
1
star
41

asm-dom-starter

๐Ÿ’ฅ An example with asm-dom (virtual HTML dom with C++)
JavaScript
1
star
42

Parallel

A 2D game about the same character in 2 different parallale world. You play both of them at the same time.
C++
1
star
43

chrome-dangling-ptr-apply-edit

C++
1
star
44

ChromeDanglingUntriagedTracker

C++
1
star
45

vim-configuration

My vim configuration
Vim Script
1
star
46

PartitionAlloc

Mirror of the chromium partition_alloc repository. Updated daily.
C++
1
star
47

webgpu-dawn-cmake-test

I am testing dawn - https://dawn.googlesource.com/dawn
C++
1
star
48

ChromeSpanificationTracker

C++
1
star
49

SyntheseImage

C++
1
star