Skip to content

Latest commit

 

History

History

examples_oldgl_glfw_glad

DelFEM2 C++ Examples using Legacy OpenGL and Glad

These demos use OpenGL version 2.1 and GLSL shaer version 1.2 which are depricated in many environment. But still it is convenient to use legacy functions such as glBegin(), glEnd().

How To Build

These demos depend on the GLFW library to open an OpenGL window. If you haven't install glfw in your computer, please read following Document to set up GLFW.

With glfw installed, you can build the demos simply by

mkdir build && cd build
cmake ..
cmake --build .

Simple Demo

VBO

Shader