Skip to content

douze/odo

Repository files navigation

odo

Linux license continuous integration status

OpenGL demo project is used to discover modern:

  • Toolchain
  • C++
  • OpenGL

Preview

Terrain rendering features

  • Instances of patches, with position & offset from vertex shader
  • Camera based LOD, using GPU tessellation
  • Procedural height from GPU combined noise functions

Librairies

Installation

Prerequisites:

  • dependencies: pkg-config xorg-dev libx11-xcb-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-util-dev
  • build system generator: cmake
  • build system: ninja
  • compiler: clang++
  • package manager: conan

Download packages

conan install . -if build/ -s build_type=Debug -s compiler=clang -s compiler.version=10 -s compiler.libcxx=libstdc++11 -e CC=clang -e CXX=clang++ -b outdated

Alternative

sh setup.sh

Generate build files

CC=clang CXX=clang++ cmake -G Ninja -S . -B build/

Alternative

sh configure.sh

Build

cmake --build build

Alternative

sh build.sh

Usage

./build/bin/demo

Alternative

sh run

Resources

Textures