view Framework/Scene2D/Internals/OpenGLShaderVersionDirective.h @ 1391:32272ecfc6c2

Drilled a hole through the abstractions to be able to match an SdlViewport with its SDL window ID to support dispatching event loop SDL events as viewport/controller/compositor method calls.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 28 Apr 2020 13:26:41 +0200
parents 4eccf698e52f
children 828a9b4ee1b7
line wrap: on
line source

#pragma once

#if ORTHANC_ENABLE_WASM == 1
// https://emscripten.org/docs/optimizing/Optimizing-WebGL.html
#  define ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE "precision mediump float;\n"
#else
#  define ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE "#version 110\n"
#endif