Skip to content

Language standards

Zalasus edited this page Jun 3, 2018 · 1 revision

In order to maintain a consistent level of compatibility with all target platforms, please stick to the following rules regarding language standards and versions:

C++

OpenDrakan is written to be compatible with the C++14 standard. While some features of C++17 seem tempting (especially the std::filesystem namespace, for which we have written a primitive alternative), not all of them are available on commonly used systems, like on GCC 6.3.0, which as of now is the newest version of GCC available for Debian Stable.

GLSL

Shaders must use GLSL 1.20 (#version 120). Some Apple drivers only implement OpenGL up to version 2.10, which limits us to this version of GLSL.

Clone this wiki locally