Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 615 Bytes

README.md

File metadata and controls

30 lines (30 loc) · 615 Bytes

learnopengl

One rainy day led me to learn about the Open Graphics Library

Build glad

git submodule update --init --recursive --remote
cd glad/
cmake .
make
sudo cp -a include /usr/local/

Install necessary packages

sudo apt-get install -y libglfw3
sudo apt-get install -y libglfw3-dev
sudo apt-get install -y libxxf86vm-dev
sudo apt-get install -y libxi-dev
sudo apt-get install -y libxinerama-dev

How to build an example

cd ~/learnopengl/0.HelloWindow
mkdir build && cd build
cmake ..
make

How to run an example

export DISPLAY="<ssh_ip>:<display_number>"
./hellowindow