Skip to content

jfaust/filament-glfw-share-context

Repository files navigation

Filament glfw shared context example

This is a demonstration of using a shared context with Filament and GLFW.

It sets up two windows, one invisible to use as a GL share context.

It then creates a GL texture, and passes it in to Filament using Texture::import(), rendering it on a quad with Filament.

Dependencies

Requires cmake, clang, libc++, lld, glfw, and a local installation of Filament

Ubuntu 20.04

apt install clang-12 lld-12 libc++-12-dev libc++abi-12-dev

Building

mkdir build
cd build
CC=clang CXX=clang++ cmake -DFILAMENT_INSTALL_PATH=<path to Filament install dir> ..
make

Running

In the build dir:

./glfw-shared-gl-context

To reproduce the BadMatch error described at google/filament#5617:

./glfw-shared-gl-context --badmatch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages