1 // ============================================================================= 2 // PROJECT CHRONO - http://projectchrono.org 3 // 4 // Copyright (c) 2014 projectchrono.org 5 // All rights reserved. 6 // 7 // Use of this source code is governed by a BSD-style license that can be found 8 // in the LICENSE file at the top level of the distribution and at 9 // http://projectchrono.org/license-chrono.txt. 10 // 11 // ============================================================================= 12 // Authors: Hammad Mazhar 13 // ============================================================================= 14 // Header for OpenGL API export 15 // ============================================================================= 16 17 #ifndef CHAPIGL_H 18 #define CHAPIGL_H 19 20 #include "chrono/ChVersion.h" 21 #include "chrono/core/ChPlatform.h" 22 23 /** 24 @defgroup opengl_module OpenGL module 25 @brief Runtime visualization with OpenGL 26 27 This module provides support for run-time Chrono visualization using OpenGL. 28 Differently from the IRRLICHT module, this system provides a lower-level 29 access to the rendering system, when fewer features and faster rendering 30 are needed. 31 32 For additional information, see: 33 - the [installation guide](@ref module_opengl_installation) 34 - the [tutorials](@ref tutorial_root) 35 */ 36 37 // When compiling this library, remember to define CH_API_COMPILE_OPENGL so 38 // that the symbols with 'CH_OPENGL_API' in front of them will be marked as 39 // exported. When using this library, CH_API_COMPILE_OPENGL should be left 40 // undefined so that symbols are imported. 41 42 #if defined(CH_API_COMPILE_OPENGL) 43 #define CH_OPENGL_API ChApiEXPORT 44 #else 45 #define CH_OPENGL_API ChApiIMPORT 46 #endif 47 48 #endif 49