Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using EGL #2

Merged
merged 13 commits into from
May 12, 2021
Merged

Switch to using EGL #2

merged 13 commits into from
May 12, 2021

Conversation

haudren
Copy link

@haudren haudren commented May 12, 2021

Replace GLFW backend with EGL. GLFW has two disadvantages:

  • It's an external dependency
  • It requires an active display and window manager

On the other hand, this PR switches to EGL which is built-in to modern OpenGL, and does not require a window manager.

Please ignore all changes related to egl.{c,h}, gl.{c,h} and glad.{c,h} as those are auto-generated via GLAD

To test:

cd gl_depth_sim
mkdir build
cd build 
cmake ..
make
#first render
./depth_sim_example /path_to_some_mesh
cp img.png headful.png
unset DISPLAY
# Headless rendering
./depth_sim_example /path_to_some_mesh
# Compare both images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant